Hitachi MICRO-EHV+ Applications Manual page 113

Table of Contents

Advertisement

(2) Local variables are defined in a POU and referred from EtherCAT I/O mapping as below.
(3) Direct address in smaller data type than bit channels
Slave units of 16/32/64-bit channels are used and direct address is used in smaller data type than bit channels.
[Example]
In case of 16-bit channel (UINT) slave, the direct address of UINT is %QW2. If %QW2 or %QX5.0 (LSB) is used
in POU, it works correctly, but %QB5 is used, the data is swapped. In case of LWORD slave, direct address of
BYTE/WORD/DWORD does not work correctly.
This byte-swapping is a bug in IoDrvEtherCAT 3.5.5.0 library. To set "Enabled 2" is a temporary solution. This
was fixed on CODESYS V3.5 SP6. Be sure to update IoDrvEtherCAT library to 3.5.6.0.
Auto restart slaves
Due to a bug in IoDrvEtherCAT library 3.5.5.0, "Auto restart slaves" may not work always when power of slave unit
is rebooted. If slave units are rebooted while the networking is running, restore the network by reset warm/cold or
rebooting CPU module.
Scan for Devices
I/O modules mounted on EH-IOCA or other slaves' information are not read out correctly with "Scan for Devices". It
was improved in IoDrvEtherCAT library 3.5.6.20. The countermeasure is to set shorter cycle time (4ms for example)
for EtherCAT task temporary and to perform Scan for Devices once again. If it still fails, configure each I/O module or
slaves manually with [Plug Device].
Processor load watchdog in Reset warm/cold
If run/stop switch is turned from run to stop (reset warm) or reset warm/cold is performed with CODESYS, an
exception of processor load watchdog (error code 25) may be detected since it takes some time to initialize EtherCAT
network. The countermeasure is to disable "Update IO while in stop" in [PLC settings] tab in [Device] window.
3 – 53
Chapter 3
Programming

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents