13 Program Example
13.3 Program
207
FX
3U
-CAN User's Manual
11
PL
C
RU
N/
S
T
OP
12
C
ommuni
cati
on
S
ettings
Procedure
13
Program
Ex
ampl
e
14
D
iagnos
tics
28
29
30
31
32
Issue an SDO write command to activate the transmission of analog input data from the MELSEC_STlite node
ReleaseAnalogInputdata
StartSDOWrite
MELSEC_STliteHeartbeatActive
MELSEC_STlitePreoperational
AND
EN
s
WriteNodeAddress
ENO
d
MOV
K3
H6423
EN
s
WriteIndex
ENO
d
MOV
H0
K1
K1
EN
s
WriteSubIndex
ENO
d
MOV
EN
s
WriteDataLength
ENO
d
MOV
EN
s
WriteData[0]
ENO
d
MOV
EN
StartSDOWrite
ENO
d
SET
EN
ReleaseAnalogInputdata
ENO
d
RST
Execute an SDO write command to the index 6423, sub-index 0 of node address 3
HeadAddress
NodeAddress
Index
SubIndex
WriteDataLength
WriteData
WriteCommand
0
WriteNodeAddress
WriteIndex
WriteSubIndex
WriteDataLength
WriteData[0]
StartSDOWrite
WriteCompleted
WriteError
WriteErrorCode
SDOWrite
SDOWriteCommand
SDOWriteCompleted
SDOWriteError
SDOWriteErrorCode
If a SDO write command execution is completed, reset its execution signal
SDOWriteCompleted
EN
StartSDOWrite
ENO
d
RST
If a SDO write command execution error occurs, increase the command error counter
SDOWriteError
EN
SDOWriteErrorCounter
ENO
d
INCP
If a SDO write command execution is completed, increase the command complete counter and move to the next command
SDOWriteCompleted
SDOWriteError
AND
EN
SDOWriteOkCounter
ENO
d
INCP
EN
PDOSetupProcessing
ENO
d
SET
EN
s
CommandSequence
K1
ENO
d
MOV
Summary of Contents for FX3U-CAN
Page 1: ...FX3U CAN USER S MANUAL ...
Page 2: ......
Page 6: ...Safety Precautions Read these precautions before use 4 MEMO ...
Page 227: ......