Hardware reference
HARDWARE REFERENCE MANUAL
222
Revision 5.0
The FZM1 PDO contains the following areas:
Command area
(controller to FZM1)
Arguments
•
function
$66 to configure the mapping
•
unit_number
Unit number of the EtherCAT master to which the slave is attached.
•
address
Configured address of the EtherCAT slave
•
VR_start_RxPDO
The starting address in VR memory of the controller where the data to
the device (RxPDO) is mapped (default = 0)
•
VR_length_RxPDO
The number of VR locations to allocate data to the device (RxPDO) (one
object per VR, default = 0)
•
VR_start_TxPDO
The starting address in VR memory of the controller where the data from
the device (TxPDO) is mapped (default = 0)
•
VR_length_TxPDO
The number of VR locations to allocate data from the device (TxPDO)
(one object per VR, default = 0)
Example
The following example maps the FZM1 (address 1001) Command area to VR
locations 100 to 104 and the Response and Output area to VR locations 200
to 211 and checks if the command was successful.
IF ETHERCAT($66,0,1001,100,5,200,12) THEN
PRINT "Mapping: OK"
ELSE
PRINT "Mapping: FAIL"
ENDIF
See also
N/A
Item
31 - 17
16
15 - 2
1
0
Control
Reserved
DSA
Reserved
STEP
EXE
Command
UDINT (32 bits)
Parameter 1
DINT (32 bits)
Parameter 2
DINT (32 bits)
Parameter 3
DINT (32 bits)