Delta Electronics DVPCOPM-SL Network Card User Manual


 
CANopen Communication Module DVPCOPM-SL
DVP-PLC Application Manual
25
MOV H0101 D6250
M0
MOV H0004 D6251
MOV H0102
D6252
MOV
H2021
D6253
MOV H0004 D6254
END
ReqID = 01, Command = 01
Size = 04
Type = 01, MAC ID = 02
Index = 2021
Sub index = 04
z Program 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 read the contents in
index 2021, sub index 4 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 ~ D6005.
Example II
z Target:
When M0 = On, set the content in index 2047, sub index 2 (i.e. the control word of the target
temperature) in IFD9503 to 0104Hex (i.e. 26.0°C). Please note that you have to write 0401Hex into
D6255 of the PLC.
DVPCOPM DVP28SV
RUN
STOP
Master
CANopen
DTA
RS-485
IFD9503
CAN+
CAN-
SHLD
GND
Node 1
Node 2
DTA4848
AT
SET
PV
SV
OUT ALM1 ALM2
°C
°
F