Chapter 14 PLC Function
|
C200 Series
14-65
API
261
CANRX
P
S1
S2
S3
D
Read CANopen slave data
Bit Devices
Word Devices
X Y M K
H KnX KnY KnM T
C
D
S
1
*
*
S
2
*
*
S
3
*
*
D
*
*
*
Operand: none
16-bit command (7 STEPS)
FREQ
FREQP
32-bit command
-
-
-
-
Flag signal: M1028
Explanation
1.
S
1
: Slave station number,
S
2
: main index,
S
3
: sub-index + bit length,
D
: save
address
2. Command CANRX can read the corresponding slave. Index. When executing this
command, it will send SDO message to the slave. At this time, M1066 and M1067
are 0 but when reading is complete M1066 will set to 1. If the slave replied an
accurate response, the value will be written to the designated register and M1067
is now set to 1. However, if the slave replied an inaccurate response, this error
message will be recorded in D1076~D1079.
Example
M1002: touch once to activate PLC and change K4M400=K1. After the change,
different message will be displayed when M1066 is set to 1.
M1002
MOV
K1
K4M400
END
6
0
17
27
61
M1066
TMR
T30
K5
T10
ROLP
K1
K4M400
M400
H6041
D120
M401
M402
M403
M402
CANFLSP D2025
M403
CANFLSP D2125
K1
CANRXP
H6041
D121
K2
CANRXP
H6041
D120
K1
CANTXP
H6041
D120
K2
CANTX
37
47
57
65
9999
Call 1(800)985-6929 for Sales
deltaacdrives.com
sales@deltaacdrives.com
Call 1(800)985-6929 for Sales
deltaacdrives.com
sales@deltaacdrives.com