PLC Code Sys
PLC Code Sys
PLC Code Sys
Manufacturer
Eaton Automation GmbH
Spinnereistrasse 8-14
CH-9008 St. Gallen
Schweiz
www.eaton-automation.com
www.eaton.eu
Support
Region North America Other regions
Eaton Corporation Please contact your local distributor or send an
Electrical Sector e-mail to: automation@eaton.com
1111 Superior Ave.
Cleveland, OH 44114
United States
877-ETN-CARE (877-386-2273)
www.eaton.com
Original instructions
English
Redaction
Daniel Lenherr
Copyright
© Eaton Automation GmbH, CH-9008 St. Gallen
All rights reserved, also for the translation.
None of this documents may be reproduced or processed, duplicated or distributed by electronic
systems in any form (print, photocopy, microfilm or any other process) without the written permission
of Eaton Automation GmbH, St. Gallen.
Subject to modifications.
2
Contents
3
1 XSOFT-CODESYS V3.5.4
4
1.2 Version information
5
1.3 Features and changes
Components of PLC programming system CODESYS updated
Components of PLC runtime system CODESYS updated
Various firmware updates
Various device descriptions for CAN, Profibus and SWD updated
Ethernet/IP functionality is now supported
SAE J1939 functionality is now supported
Target system XV100
CAN configuration: Support of 2nd CAN interface is now supported
1.4 Documentation
The target system specific programming manuals are not part of this distribution. They are
published on our web site www.eaton-automation.com in order to provide you the latest
version.
6
1.5 Known restrictions
Ticket Summary
1404 Library EA_Network, EA_Network_ext: Library functions not yet included. The functions
are not supported yet.
1398 Target visu, alarm management: Incorrect display in the alarm table if the "Automatic
CDS-36646 line break for alarm message" is enabled.
1397 Target visu, alarm management: Incorrect display in the alarm table if the "Automatic
CDS-36646 line break for alarm message" is enabled. The message text of messages with
placeholders influences message texts of other alarms. A part of one alarm text also
appears in the alarm text of other alarm.
1379 Task configuration: The priority of event tasks is not considered.
1342 Target system XV-1xx, XVS-4xx and XC-152, function block DiagGetBusState(): A
diagnostic message which is pending before start will not detected.
1341 Target system XV-1xx, XVS-4xx and XC-152, SWD-DP-Gateway: If a reset operation is
performed with a quickly following start operation, the connection to the gateway cannot
always be established.
Workaround: Until this issue is fixed, use a longer break between reset and start
operation
1315 Target system XV-1xx, XVS-4xx and XC-152, SWD-DP-Gateway: On initialization with
baud rate 9600 bit/s and 19200 bit/s communication problems can occur.
1313 CAN: gc_bReadQueueSize has no effect on XV-1xx, XV-4xx, XC-152 => fixed value of
256 is used for Input-Queue-Sizes
1269 Data server: If the PC has multiple network adapters, the connection to data server
1498 does not work as documented in the online help.
The best way to get a connection is to search the target device by a network scan
and to configure the specified node name of the device as data source.
Please note: In the log file of the PLC with the configured data server you can see
if the connection is established or with which error it fails.
1241 Modbus Slave Device: Bit-Access function codes (Coils) are not implemented yet.
CDS-27947 It is recommended to use register function codes instead.
7
1148 RTS WinCE: GUI not yet refactored
1143 Retain Persistent Array with constant index: A compiler error appears if Retain
CDS-31058 Persistent Array with constant index was renamed afterwards.
Workaround: Delete the object PersistentVars to fix this bug
1138 Device editor, online view: The profibus diagnostics is only partially implemented. Not all
functionalities are supported yet.
1105 On PLC reset, the handles are not closed automatically.
1094 Various documentation not yet included
1044 IOassistant not yet included
8
1.6.2 Target system XV-1xx
9
1.6.5 Target system XC-152
10
1403 Modbus RTU restrictions with 9600 Baud on XV100, XC150 and XV400: fixed
Depending on the amount of transmitted data a minimum PLC cycle of 20
ms is required.
The update of operating system fixes the problem (OS V2.26.7 (CE5.0)
1372 Switched from preemptive to nonpreemptive task management (IEC tasks fixed
with the same priority do not interrupt each other).
1331 PLC runtime system crashes with exception message CMexiton if a fixed
shutdown is called.
1301 Library EA23_DPV1, function block DPV1_ReadEx(): If the input parameter fixed
Enable is set to false or a rising edge occurs, the output parameter Error is
not reset.
1204 If a stop event occurs, the reason is notified (application is stopped by GUI fixed
or by switch)
11
2 XSOFT-CODESYS V3.5.3
12
2.2 Version information
13
2.3 Features and changes
Components of PLC programming system CODESYS updated
Components of PLC runtime system CODESYS updated
Various firmware updates
New firmware download functionality for XC202
EDS files for SWD functionality updated
Modules "WOE-SWD-ECS3D2D" and "WOE-SWD-MOTUS" are now supported
2.4 Documentation
The target system specific programming manuals are not part of this distribution. They are
published on our web site www.eaton-automation.com in order to provide you the latest
version.
14
2.5 Known restrictions
Ticket Summary
1404 Library EA_Network, EA_Network_ext: Library functions not yet included. The functions
are not supported yet.
1398 Target visu, alarm management: Incorrect display in the alarm table if the "Automatic
CDS-36646 line break for alarm message" is enabled.
1397 Target visu, alarm management: Incorrect display in the alarm table if the "Automatic
CDS-36646 line break for alarm message" is enabled. The message text of messages with
placeholders influences message texts of other alarms. A part of one alarm text also
appears in the alarm text of other alarm.
1342 Target system XV-1xx, XVS-4xx and XC-152, function block DiagGetBusState(): A
diagnostic message which is pending before start will not detected.
1341 Target system XV-1xx, XVS-4xx and XC-152, SWD-DP-Gateway: If a reset operation is
performed with a quickly following start operation, the connection to the gateway cannot
always be established.
Workaround: Until this issue is fixed, use a longer break between reset and start
operation
1315 Target system XV-1xx, XVS-4xx and XC-152, SWD-DP-Gateway: On initialization with
baud rate 9600 bit/s and 19200 bit/s communication problems can occur.
1313 CAN: gc_bReadQueueSize has no effect on XV-1xx, XV-4xx, XC-152 => fixed value of
256 is used for Input-Queue-Sizes
1269 Data server: If the PC has multiple network adapters, the connection to data server
1498 does not work as documented in the online help.
The best way to get a connection is to search the target device by a network scan
and to configure the specified node name of the device as data source.
Please note: In the log file of the PLC with the configured data server you can see
if the connection is established or with which error it fails.
1265 Device update: After update of IO mapping nothing is changed. Sample: If IO mapping
CDS-33507 changed from "In_32Byte" to "In_16Word") the IO mapping remains "ARRAY [0 to 31]
OF BYTE".
1247 Profibus DP Editor: Controls stay disabled after online mode
CDS-31975
1241 Modbus Slave Device: Bit-Access function codes (Coils) are not implemented yet.
CDS-27947 It is recommended to use register function codes instead.
1240 Modbus Slave: Unable to write Holding Register
CDS-28362 Holding registers are defined as Input Channels. Therefore the local slave
application can only read these data, but is unable to update the value of the
holding registers. To enable this, the register shall be mapped to a global variable.
1234 Target visu: Color Gradient is not supported yet
1233 CANopen Inputs of missing nodes keep their values and are not set to default values
1213 Target visu: Under the following condition, a bitmap will not be shown: The image is
CDS-30962 contained within an explicitly inserted image pool with name "ImagePool" that is located
in the POUs and is used in the visualization.
Workaround: Until this issue is fixed, the following simple workarounds can be
15
used: Move the ImagePool to the application and rename the image pool.
1208 XSOFT-CODESYS is working only with 96 DPI display size properly.
1207 Target system XV-4xx, Profibus DPV1 functionality is not supported yet.
1162 Udp network variables: If acknowledgment is selected, the response messages are
missing
1161 Target system XV-1xx, XV-4xx, XVS-4xx and XV-152, support of onboard flash is not
yet included. The functions Sys_FlashInit(), Sys_FlashErase(), Sys_FlashWrite() and
Sys_FlashRead() are not supported yet.
1148 RTS WinCE: GUI not yet refactored
1147 CAN configuration: Support of 2nd CAN interface is not supported yet
1143 Retain Persistent Array with constant index: A compiler error appears if Retain
CDS-31058 Persistent Array with constant index was renamed afterwards.
Workaround: Delete the object PersistentVars to fix this bug
1105 On PLC reset, the handles are not closed automatically.
1094 Various documentation not yet included
1044 IOassistant not yet included
16
2.6.2 Target system XV-1xx
17
SWD_ERROR_TARGETCONFIG /SWD_ERROR_PROJECTCONFIG
1305 Library EA_CAN, function CAN_SetBaudrate(): Function returns an error, if fixed
CAN bus is already initialized. Now it is possible to set the baud rate if the
CAN bus is already initialized.
1316 Target visu, alarm management: On alarm tables, line breaks are not fixed
1272 displayed correctly.
1262 Target visu: Alarm management uses lot of system resources. fixed
1261 Target visu: Not all tables are refreshed automatically. fixed
CDS-32587
1178 Libraries SysFile23/SysFileAsync23, function SysFileClose(): PLC runtime fixed
CDS-31968 system crashes if using function SysFileClose().
1108 Libraries SysFile23/SysFileAsync23, function SysFileRead(): PLC runtime fixed
CDS-27358 system crashes if using function with invalid file handle (0).
18
3 XSOFT-CODESYS V3.5.2
19
3.2 Version information
20
3.3 Features
Since this is an initial release of a new generation of XSOFT-CODESYS, there are a lot of
enhancements and new features both in the programming and the runtime system. Please
refer also to CODESYS 3.x documentation.
3.4 Documentation
The target system specific programming manuals are not part of this distribution. They are
published on our web site www.eaton-automation.com in order to provide you the latest
version.
21
3.5 Known restrictions
Ticket Summary
1342 Target system XV-1xx, XVS-4xx and XC-152, function block DiagGetBusState(): A
diagnostic message which is pending before start will not detected.
1341 Target system XV-1xx, XVS-4xx and XC-152, SWD-DP-Gateway: If a reset operation is
performed with a quickly following start operation, the connection to the gateway cannot
always be established.
Workaround: Until this issue is fixed, use a longer break between reset and start
operation
1315 Target system XV-1xx, XVS-4xx and XC-152, SWD-DP-Gateway: On initialization with
baud rate 9600 bit/s and 19200 bit/s communication problems can occur.
1313 CAN: gc_bReadQueueSize has no effect on XV-1xx, XV-4xx, XC-152 => fixed value of
256 is used for Input-Queue-Sizes
1316 Target visu, alarm management: On alarm tables, line breaks are not displayed
1272 correctly.
1269 Data server: If the PC has multiple network adapters, the connection to data server
does not work as documented in the online help.
The best way to get a connection is to search the target device by a network scan
and to configure the specified node name of the device as data source.
Please note: In the log file of the PLC with the configured data server you can see
if the connection is established or with which error it fails.
1262 Target visu: Alarm management uses lot of system resources.
It is not recommended to use the alarm management with this release of the
software.
1261 Target visu: Not all tables are refreshed automatically.
CDS-32587
1247 Profibus DP Editor: Controls stay disabled after online mode
CDS-31975
1241 Modbus Slave Device: Bit-Access function codes (Coils) are not implemented yet.
CDS-27947 It is recommended to use register function codes instead.
1240 Modbus Slave: Unable to write Holding Register
CDS-28362 Holding registers are defined as Input Channels. Therefore the local slave
application can only read these data, but is unable to update the value of the
holding registers. To enable this, the register shall be mapped to a global variable.
1237 Device Editor: Controls with parent control stay disabled after online mode
CDS-31957
1234 Target visu: Color Gradient is not supported yet
1233 CANopen Inputs of missing nodes keep their values and are not set to default values
1213 Target visu: Under the following condition, a bitmap will not be shown: The image is
CDS-30962 contained within an explicitly inserted image pool with name "ImagePool" that is located
in the POUs and is used in the visualization.
Workaround: Until this issue is fixed, the following simple workarounds can be
used: Move the ImagePool to the application and rename the image pool.
22
1208 XSOFT-CODESYS is working only with 96 DPI display size properly.
1207 Target system XV-4xx, Profibus DPV1 functionality is not supported yet.
1178 Libraries SysFile23/SysFileAsync23, function SysFileClose(): PLC runtime system
CDS-31968 crashes if using function SysFileClose()
1162 Udp network variables: If acknowledgment is selected, the response messages are
missing
1161 Target system XV-1xx, XV-4xx, XVS-4xx and XV-152, support of onboard flash is not
yet included. The functions Sys_FlashInit(), Sys_FlashErase(), Sys_FlashWrite() and
Sys_FlashRead() are not supported yet.
1148 RTS WinCE: GUI not yet refactored
1147 CAN configuration: Support of 2nd CAN interface is not supported yet
1143 Retain Persistent Array with constant index: A compiler error appears if Retain
CDS-31058 Persistent Array with constant index was renamed afterwards.
Workaround: Delete the object PersistentVars to fix this bug
1108 Libraries SysFile23/SysFileAsync23, function SysFileRead(): PLC runtime system
CDS-27358 crashes if using function with invalid file handle (0).
1105 On PLC reset, the handles are not closed automatically.
1094 Various documentation not yet included
1079 Compile: The calculated size of persistent data is not always correct. Reorganization of
CDS-30769 persistent variables with Clean All required.
1044 IOassistant not yet included
23
3.6 Addressed Defects and Changes
It is an initial release version, there are no addresses defects and changes.
24
4 Migration guide
4.1 Introduction
If you migrate projects from CODESYS V2 to CODESYS V3 take a few minutes to review the
following information.
For further information, please refer also chapter "Known restrictions" (see chap. 3.5).
Management
Ticket 1115
The retain data handling is not compatible to CODESYS V2.3. On the same hardware 44 bytes are
less available.
Function SysDirOpen()
Ticket 1109
Function is not compatible to CODESYS V2.3. If an error occurs, it returns -1 instead 0.
Function SysFileDelete()
Ticket 1176
Output parameter wErrorId is not compatible to CODESYS V2.3.
25
Function SysFileOpen()
Ticket 1173
Function is not compatible to CODESYS V2.3. It is possible to open a file multiple times with mode
"write".
Ticket 1171, CDS-22259
Function is not compatible to CODESYS V2.3. It is not possible to open a file with mode "append".
Use the file open function and set the file pointer to EOF to append file data.
Ticket 1106
Function is not compatible to CODESYS V2.3. If an error occurs, it returns -1 instead 0.
Function SysFileEOF()
Ticket 1172, CDS-31922
Function is not compatible to CODESYS V2.3. It returns true at different position.
Function SysFileDelete()
Ticket 1176
Output parameter wErrorId is not compatible to CODESYS V2.3.
Function SysFileOpen()
Ticket 1173
Function is not compatible to CODESYS V2.3. It is possible to open a file multiple times with mode
"write".
Ticket 1171, CDS-22259
Function is not compatible to CODESYS V2.3. It is not possible to open a file with mode "append".
Ticket 1106
Function is not compatible to CODESYS V2.3. If an error occurs, it returns -1 instead 0.
Function SysFileEOF()
Ticket 1172, CDS-31922
Function is not compatible to CODESYS V2.3. It returns true at different position.
26
4.2.5 Library SysTask23
Function SysTaskGetInfo()
Ticket 1170, CDS-31774
Function is not compatible to CODESYS V2.3. Return values SysTaskInfo.dwId and
SysTaskInfo.wIECTaskNr are always 0.
Use library SysTask and CmpIECTask
Function SysLibGetAddress()
Ticket 1110
Function is not compatible to CODESYS V2.3. It returns wrong values.
Function SysLibGetSize()
Ticket 1110
Function is not compatible to CODESYS V2.3. It returns wrong values.
Function SysComRead()
Ticket 1104
Function is not compatible to CODESYS V2.3. If buffer is empty and the timeout is 0, the function
returns after 2000 ms.
27
Function block is not compatible to CODESYS V2.3. It is available with limited functionality. The
functionality cannot be represented with the same interface on the CANopen stack of CODESYS V3.
Function CanUser_Write()
Ticket 1098
Function is not compatible to CODESYS V2.3. If a queue overflow occurs, the function returns with
value 17.
Function CheckPDOconfig()
Ticket 1098
Function is not available anymore. The functionality cannot be represented with the same interface
on the CANopen stack of CODESYS V3.
28
Function block is not compatible to CODESYS V2.3. Function block is available with limited
functionality. The functionality cannot be represented with the same interface on the CANopen stack
of CODESYS V3.
29
4.2.16 Library SysLibPlcCtrl
Function SysEnableScheduling()
Function is not supported yet.
Function SysWdgEnable()
Function is not supported yet.
30
The Highest Station Address (HSA) is now 125. User cannot select 126 anymore.
Object trend
If a CODESYS V2 project contains trend objects and it is converted to CODESYS V3, the trend
objects are missing. The object trend is not available anymore.
Use object trace instead
4.2.25 IO mapping
Address alignment
Ticket 1343
The address alignment of IOs can be different.
If the CODESYS V2 project contains variables which are manually mapped to IO addresses
(bValue AT %IBx : BYTE;), it is necessary to check the manually mapped IO addresses.
31