X-410 Users Manual
6.5.2 Using an External Web Server........................................................................................................122
6.5.2.1Direct Server Control................................................................................................................ 122
6.5.2.2Remote Services...................................................................................................................... 122
Connection String....................................................................................................... 123
6.6 Email Notification................................................................................................................................ 124
6.6.1 Email Notification Description......................................................................................................... 124
6.6.2 Email Notification Setup.................................................................................................................. 125
6.7 Log Files............................................................................................................................................... 126
Data Log File – log.txt............................................................................................................................... 126
System Log File – syslog.txt..................................................................................................................... 128
6.8 Modbus/TCP........................................................................................................................................ 130
6.8.1 X-410 Function Code Summary......................................................................................................130
6.8.2 Read Coils - Modbus Function Code 01 (0x01)..............................................................................131
Request........................................................................................................................................... 131
Response........................................................................................................................................ 131
Errors............................................................................................................................................... 131
6.8.3 Read Discrete Inputs – Modbus Function Code 02 (0x02).............................................................132
Request........................................................................................................................................... 132
Response........................................................................................................................................ 132
Errors............................................................................................................................................... 132
6.8.4 Read Holding Registers – Modbus Function Code 03 (0x03).........................................................133
Request........................................................................................................................................... 133
Vin Start Addresses.................................................................................................... 133
Temperature and Humidity Sensor Start Addresses..................................................133
Counter Input Start Addresses...................................................................................133
Response........................................................................................................................................ 133
Errors............................................................................................................................................... 133
6.8.5 Write Single Coil – Modbus Function Code 05 (0x05)....................................................................134
Request........................................................................................................................................... 134
Response........................................................................................................................................ 134
Errors............................................................................................................................................... 134
6.8.6 Write Multiple Coils - Modbus Function Code 15 (0x0F).................................................................135
Request........................................................................................................................................... 135
Response........................................................................................................................................ 135
Errors............................................................................................................................................... 135
6.8.7 Write Multiple Registers – Modbus Function Code 16 (0x10).........................................................136
Request........................................................................................................................................... 136
Set Counters, Registers and other analog values......................................................136
Pulse Relay................................................................................................................ 136
Response........................................................................................................................................ 136
Errors............................................................................................................................................... 136
6.9 Basic Scripts........................................................................................................................................ 137
6.9.1 Structure......................................................................................................................................... 137
6.9.2 Line Format..................................................................................................................................... 137
6.9.3 Supported Statements.................................................................................................................... 138
LET.................................................................................................................................................. 138
IF THEN, ELSE, END IF.................................................................................................................. 138
FOR TO, NEXT............................................................................................................................... 138
DO WHILE, LOOP........................................................................................................................... 138
LOG................................................................................................................................................. 139
EMAIL.............................................................................................................................................. 139
END................................................................................................................................................. 139
CALL............................................................................................................................................... 139
Page 6 Xytronix Research & Design, Inc.