6 Message Communications
6-4
CJ-series PROFIBUS Master Unit Operation Manual for NJ-series CPU Unit (W509)
Input Variable Function Example Details
Execute The operation SendCmd is executed when TRUE is set. ---
DstNetAdr The destination network address is specified with the use of
the network address/node address/unit address.
Network address: 0
Node address: 0
Unit address: 16#11
CommPort The destination port is specified. NONE (Default)
CmdDat Sdata[0] Command code 16#28
Sdata[1] 16#01
Sdata[2] Slave node address (65) 16#41
Sdata[3] ServiceCode 16#0E
Sdata[4] ClassID 16#00
Sdata[5] 16#9C
Sdata[6] InstanceID 16#00
Sdata[7] 16#01
Sdata[8] AttributeID 16#73
CmdSize The number of bytes corresponding to the
command data to be sent is specified.
9
RespDat Rdata[0] Command code 16#28
Rdata[1] 16#01
Rdata[2] End code 16#00
Rdata[3] 16#00
Rdata[4] Number of bytes received 16#00
Rdata[5] 16#2A
Rdata[6] Slave node address (65) 16#41
Rdata[7] ServiceCode (when completed normally) 16#8E
Rdata[8] Number of slave alarm data: 32 (20 Hex) 16#20
Rdata[9] Status of slave #4, slave #3 (2 bits each) 16#00
Rdata[10] Status of slave #8, slave #7 (2 bits each) 16#00
Rdata[11] Status of slave #1, slave #2 (2 bits each) 16#00
Rdata[12 to 41] -- (continue)
Option Response monitoring, and number of resends, are specified. ResponseTime = 3C
Retry = 0
Execute
DstNetAdr
CommPort
CmdDat
CmdSize
RespDat
Option
Done
Sdata[0]
Sdata[1]
Sdata[7]
Command code
interpretation
Execution
Sdata[8]
Response
SendCmd
Busy
Error
ErrorID
ErrorIDEx
SendCmd
Rdata[0]
Rdata[1]
Rdata[8]
Rdata[9]
Command source Destination
RespDat