![Omron 3G3AX-MX2-MRT Скачать руководство пользователя страница 240](http://html.mh-extra.com/html/omron/3g3ax-mx2-mrt/3g3ax-mx2-mrt_hardware-reference-manual_742301240.webp)
Hardware reference
HARDWARE REFERENCE MANUAL
234
Revision 5.0
Type
System command
Syntax
ETHERCAT(function, unit_number, address, VR_start_RxPDO,
VR_length_RxPDO, VR_start_TxPDO, VR_length_TxPDO)
Description
Command to control and access the EtherCAT network and its functions.
Notes:
•
This command waits for the response of the device so, its execution is
slow and the time variable. Do not use this command together with other
commands that require quick execution.
•
The
ETHERCAT
command returns -1 (
TRUE
) on success and 0
(
FALSE
) on failure.
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 FQ-M (address 1002) Command area to VR
locations 100 to 104 and the Response and Output area to VR locations 200
to 212 and checks if the command was successful.
IF ETHERCAT($66,0,1002,100,5,200,13) THEN
PRINT "Mapping: OK"
ELSE
PRINT "Mapping: FAIL"
ENDIF
See also
N/A