With this type of addressing, a master station can access different slaves connected to CANopen bus.
The syntax of CANopen addressing is ADDM ('r.m.c.node') . The meaning of the string parameter is as follows:
-
r: rack address. The processor’s rack address is always 0.
-
m: module address. The Modicon M340 processor’s slot number in the rack is always 0.
-
c: channel address. The Modicon M340 CANopen port is always channel 2.
-
node: slave number to which the request is being sent. The range for configured slave numbers is from 1 to 127.
In the following example, the Modicon M340 processor’s bus manager addresses the Lexium 05 device at connection point 28:
Address settings of slave 28: ADDM('0.0.2.28').
NOTE: In addition to the address defined by ADDM, the READ_VAR and WRITE_VAR functions use another parameter NUM, which must be defined to address the SDO to be read or written.