Loading…
Loading…
方法名称: write_modbus_register
方法ID: 0x4462
方法标签: 写入 Modbus 数据
方法描述:
- {
- char status[3];
- long var_id[2];
- int choice;
- int number;
- int coil;
- long uValue;
- float fValue;
- char disp_string[100];
- char disp_string1[100];
- int slen;
- int slen1;
- _set_xmtr_device_status(0xFF,0);
- _set_xmtr_all_resp_code(0);
- _set_device_status(0xFF,0);
- _set_all_resp_code(0);
- send_command(15);
- send_command(76);
- if (_ivar_value(167) == 1 && lock_device_status_code & 0x08)
- {
- ACKNOWLEDGE(literal_string(1873));
- process_abort();
- }
- if (_ivar_value(167) == 1)
- {
- ACKNOWLEDGE(literal_string(1874));
- process_abort();
请登录以获得完整内容