CANopen Communication Module DVPCOPM-SL
zPLC program
M1002
ZRST D6000 D6031
ZRST D6250 D6281
M0
Reset response message editing area and request message editing area.
MOV | H0101 | D6250 | ReqID = 01, Command = 01 |
MOV | H0006 | D6251 | Size = 06 |
MOV | H0202 | D6252 | Type = 02, MAC ID = 02 |
MOV | H2047 | D6253 | Index = 2047H |
MOV | H0002 | D6254 | Sub index = 02 |
MOV | H0401 | D6255 | Target temperature for DTA: 0104H |
END |
|
|
|
zProgram explanation
1.The program first reset the SDO request message editing area and SDO response message editing area to 0.
2.When M0= On, CANopen master will send out SDO request message and write 0104Hex into index 2047, sub index 2 of the target equipment (at node address 02). If the communication is successful, the slave will return with the response message.
3.When M0 = On, CANopen master will send out request message only once. If you would like it to send out messages again, you will have to change the ReqID.
4.The messages returned from the target equipment are stored in D6000 ~ D6004.
6 LED Indicator & Trouble-shooting
DVPCOPM
POWER
RUN
ERR
27 |