204
If you press F1 key, then the EXM will upload the AF1-AF3 value to the server(slave1) as follows:
Server software get the data like this:
00 01 00 00 00 0D 01 10 00 00 00 03 06 00 64 03 E8 27 10
The request and response are prefixed by six bytes as follows
byte 0: transaction identifier - copied by server
byte 1: transaction identifier - copied by server
byte 2: protocol identifier = 0
byte 3: protocol identifier = 0
byte 4: length field (upper byte) = 0 (since all messages are smaller than 256)
byte 5: length field (lower byte) = number of bytes following
byte 6: unit identifier (previously ‘slave address’)
byte 7: MODBUS function code
byte 8: Register of slave start address
byte 9: Register of slave start address
byte 10:number of registers
byte 11:number of registers
byte 12:data length field (lower byte) = number of bytes following
So, AF1 = 00 64 (DECIMAL 100)
AF2 =03 E8
(DECIMAL 1000)
AF3 = 27 10 (DECIMAL 10000)
The the server end(slave1) do response
00 01 00 00 00 06 01 10 00 00 00 03
So if the "Trg" input keeps high, the the output will be high also after the EXM get the above correct response.
Note: The Modbus code 16 is used to upload the analog value(includes analog inputs, analog outputs, analog
flag and REG), Modbus code 15 is used to upload the digital status for digital flag, digital output, and digital
input.
B. customize Modbus
For example,configuration in program like this:
B. Standard Modbus
For example,configuration in program like this:
Summary of Contents for EXM-12DC-DA-R-HMI
Page 15: ...15 Application 2 Home Security Application 3 Remote monitoring of product level in a tank...
Page 35: ...35 How to change the phone book include phone number and Email address Only for 4G version...
Page 38: ...38...
Page 49: ...49 Step C Download voice section Click menu Tool Record Click Hardware Detect button...
Page 66: ...66 You can read the parameters from the PLC...
Page 68: ...68...
Page 75: ...75 Modbus Poll works as TCP client...
Page 78: ...78 TCP Sever 192 168 0 227 port 8004 is ok TCP Sever 192 168 0 227 port 8005 is ok...
Page 79: ...79 TCP Sever 192 168 0 227 port 8006 is ok TCP Sever 192 168 0 227 port 8007 is ok...
Page 80: ...80 TCP Sever 192 168 0 227 port 8008 is ok TCP Sever 192 168 0 227 port 8009 is ok...
Page 84: ...84 3 Click Read button to read web server configure The default configuration is as follows...
Page 102: ...102 Slave1 IP 192 168 0 101 TCP server port 8001 Slave2 IP 192 168 0 102 TCP server port 8002...
Page 103: ...103 Slave3 IP 192 168 0 103 TCP server port 8003 Step 2 Program in master and slave...
Page 115: ...115 Slave1 IP 192 168 0 101 UDP Server port 8001 Slave2 IP 192 168 0 102 UDP Server port 8002...
Page 128: ...128 Network settings You can view the network parameters in such table...
Page 135: ...135 3 Select Ethernet option 4 To search PLC s IP by clicking Search button...
Page 145: ...145 B005 Read the I1 I4 status from the slave1 to the F11 F14 of the master Setting as follows...
Page 146: ...146 B006 Read the I1 IA status from the slave2 to the F21 F24 of the master Setting as follows...
Page 147: ...147 B009 Read the AF1 value from the slave1 to the AF1 of the master Setting as follows...
Page 148: ...148 B010 Read the AF1 value from the slave2 to the AF2 of the master Setting as follows...
Page 260: ...260 E F digital flag status F AF analog flag value...
Page 261: ...261 G M status H AM value...
Page 332: ...332 For example If the Memory Read block had been triggered the Q1 of ELC 12 CPU will be set 1...
Page 411: ...411 Establish the communication between eSmsConfig and EXM WIFI Unit...
Page 426: ...426 7 6 How to configure WIFI connection TCP protocol among EXM WIFI CPUs...
Page 432: ...432 B005 Read the I1 I4 status from the slave1 to the F11 F13 of the master Setting as follows...
Page 433: ...433 B006 Read the I1 I4 status from the slave2 to the F21 F23 of the master Setting as follows...
Page 434: ...434 B009 Read the AF1 value from the slave1 to the AF1 of the master Setting as follows...
Page 435: ...435 B010 Read the AF1 value from the slave2 to the AF2 of the master Setting as follows...
Page 436: ...436...