3.5 P20 hangs - no response
CODESYS Forge
talk
(Thread)
3.5 P20 hangs - no response
Last updated: 2024-06-27
How make SM_Drive_CAN_xxx device from EDS servo file
CODESYS Forge
talk
(Thread)
How make SM_Drive_CAN_xxx device from EDS servo file
Last updated: 2017-12-14
How to read I2C without specified device from FB
CODESYS Forge
talk
(Thread)
How to read I2C without specified device from FB
Last updated: 2023-01-05
Specific Data from the device string
CODESYS Forge
talk
(Thread)
Specific Data from the device string
Last updated: 2010-12-06
Target system different from the connected device
CODESYS Forge
talk
(Thread)
Target system different from the connected device
Last updated: 2017-02-25
How to read data from CAN device using Codesys?
CODESYS Forge
talk
(Thread)
How to read data from CAN device using Codesys?
Last updated: 2021-02-26
Configuring the device parameters from Test Manager
CODESYS Forge
talk
(Thread)
Configuring the device parameters from Test Manager
Last updated: 2014-01-16
Post by squiggleypuff on Can't Add New Version of Modbus TCP Master
CODESYS Forge
talk
(Post)
Turns out Modbus was working despite the pre-compiler errors; I was reading the wrong addresses of the slave device, which was why I was seeing all 0s. Thanks for ignoring me.
Last updated: 2024-04-09
Can't open online view of FB instance from code editor, only from Device/POU windows
CODESYS Forge
talk
(Thread)
Can't open online view of FB instance from code editor, only from Device/POU windows
Last updated: 2023-11-08
Post by xnoop on MBTCP Slave configuration
CODESYS Forge
talk
(Post)
Hello, I use Codesys 3.5 SP18 Patch 4 (64 bit) My Codesys project is composed of several dozen of Modbus TCP Slaves. I want to configure each of them by define : - Modbus TCP Slave Configuration : Name, IPAddress, port - Channels - Mapping I can't afford to configure manually and I need to find automatic way What possibilities does the Codesys offer? 1. I know it possible to use python script to create Modbus TCP Master and Slave. But I don't find anyway to create Channels and Mapping through the API 2. I 've tested to set mapping with file.csv on a Modbus Tcp Slave, but no way to import channels definition from file 3. I 've tried to use PLCOpenXml file. For example I 've create a project with an Ethernet device. I've exported it in PlcOpenXml file. After delete the Ethernet device, I've imported the PlcOpenXml file without success. I've tried the same by creating Modbus TCP Slave. Could you help me to find to good way ? Thanks
Last updated: 2024-06-19
Global variable access by Programms and Modbus Devices (attach device to bus)
CODESYS Forge
talk
(Thread)
Global variable access by Programms and Modbus Devices (attach device to bus)
Last updated: 2024-07-18
Post by wbj0t on What the right way to update TCP/COM slave device holding registers
CODESYS Forge
talk
(Post)
Hi all :) I have an plc. This plc has option to be as slave device. There are TCP -> Serial Slave Device and COM -> Serial Slave Device. There are 4096 ModBus holding registers with mark "internal modify" for the both devices above. So, COM Slave has 4096 registers and TCP Slave has 4096 registers. And, finally, I have an ARRAY[0..4095] OF WORD. This array glued with COM Slave and TCP slave. Yes, I need plc's opportunity to be communication both TCP and COM ways for the same registers. For example, the next task structure: * TASK_0: 1. pou_READ_Registers 2. pou_0 3. pou_1 4. ... 5. pou_N 6. pou_WRITE_Registers At the first pou I read registers for the other pous, after job we have sort of state of the plc. At the last pou (6) we write modified registers. It is a good scenario: some one wrote registers for the job, after job we save these (modified) registers. But, what if registers wrote between 1 and 6 pou by operator, for example, at the 3 pou -> the last pou 'pou_WRITE' will rewrite this request from operator. What the right way to work with this logic? Thanks you.
Last updated: 2024-07-01
Post by thysonfury on OPTO22 Groov Epic PR2 Modbus Comms Dropping out every 2 hours and 4 Mins
CODESYS Forge
talk
(Post)
Hi after some assistance with an error on a Groov PR2 PLC. We have a few different communications set up as shown below: One Modbus TCP Slave Connection - ( Sending / Receiving Data from a PC ) Two Modbus TCP Master Connection - ( Reading Data from a UPS Panel and Reading Data Gas Chromatograph) One Modbus RTU Slave Connection 485 - (Reading Data from a fire and gas panel) One Modbus RTU Master Connection 485 - (Sending Data to a Telemetry Unit) All Licenses have been installed as per OPTO22 suggestions of the order below: Modbus TCP Master Modbus TCP Slave Modbus RTU Master Modbus RTU Slave When I check on License manager the RTU Master license seems to disappear on installing the RTU. (What ever reason I’ve been told this is “normal”). If I use Device License Read It will successfully read all the licenses correctly. Now the issue is every 2 hours and between 4. For what ever reason the communications seems to end and lock up for about 20 seconds. During this time even if I was logged into the PLC it would kick me off and I’d have to re type the password to enter. Most of the devices can handle this however the RTU flags up a communications failure at the SCADA and is raising alarms every 2 hours and 4 mins. We’ve had multiple people go through the code to check for anything obvious. Does anyone have any ideas?
Last updated: 2024-04-15
Post by thysonfury on OPTO22 Groov Epic PR2 Modbus Comms Dropping out every 2 hours and 4 Mins
CODESYS Forge
talk
(Post)
Hi after some assistance with an error on a Groov PR2 PLC. We have a few different communications set up as shown below: One Modbus TCP Slave Connection - ( Sending / Receiving Data from a PC ) Two Modbus TCP Master Connection - ( Reading Data from a UPS Panel and Reading Data Gas Chromatograph) One Modbus RTU Slave Connection 485 - (Reading Data from a fire and gas panel) One Modbus RTU Master Connection 485 - (Sending Data to a Telemetry Unit) All Licenses have been installed as per OPTO22 suggestions of the order below: Modbus TCP Master Modbus TCP Slave Modbus RTU Master Modbus RTU Slave When I check on License manager the RTU Master license seems to disappear on installing the RTU. (What ever reason I’ve been told this is “normal”). If I use Device License Read It will successfully read all the licenses correctly. Now the issue is every 2 hours and between 4. For what ever reason the communications seems to end and lock up for about 20 seconds. During this time even if I was logged into the PLC it would kick me off and I’d have to re type the password to enter. Most of the devices can handle this however the RTU flags up a communications failure at the SCADA and is raising alarms every 2 hours and 4 mins. We’ve had multiple people go through the code to check for anything obvious. Does anyone have any ideas?
Last updated: 2024-04-15
Post by thysonfury on OPTO22 Groov Epic PR2 Modbus Comms Dropping out every 2 hours and 4 Mins
CODESYS Forge
talk
(Post)
Hi after some assistance with an error on a Groov PR2 PLC. We have a few different communications set up as shown below: One Modbus TCP Slave Connection - ( Sending / Receiving Data from a PC ) Two Modbus TCP Master Connection - ( Reading Data from a UPS Panel and Reading Data Gas Chromatograph) One Modbus RTU Slave Connection 485 - (Reading Data from a fire and gas panel) One Modbus RTU Master Connection 485 - (Sending Data to a Telemetry Unit) All Licenses have been installed as per OPTO22 suggestions of the order below: Modbus TCP Master Modbus TCP Slave Modbus RTU Master Modbus RTU Slave When I check on License manager the RTU Master license seems to disappear on installing the RTU. (What ever reason I’ve been told this is “normal”). If I use Device License Read It will successfully read all the licenses correctly. Now the issue is every 2 hours and between 4. For what ever reason the communications seems to end and lock up for about 20 seconds. During this time even if I was logged into the PLC it would kick me off and I’d have to re type the password to enter. Most of the devices can handle this however the RTU flags up a communications failure at the SCADA and is raising alarms every 2 hours and 4 mins. We’ve had multiple people go through the code to check for anything obvious. Does anyone have any ideas?
Last updated: 2024-04-15
ModbusTCP, can i know when i get requests from slave side?
CODESYS Forge
talk
(Thread)
ModbusTCP, can i know when i get requests from slave side?
Last updated: 2018-11-19
Warning: the number of slave has changed or is different from the configuration
CODESYS Forge
talk
(Thread)
Warning: the number of slave has changed or is different from the configuration
Last updated: 2017-09-11
Generic CiA402 dirve AL Status read from slave address 1001 status 16#1A: Synchronization error
CODESYS Forge
talk
(Thread)
Generic CiA402 dirve AL Status read from slave address 1001 status 16#1A: Synchronization error
Last updated: 2022-01-13
CANopen slave crashes on "Start Remote Node" command from master, SYNC related
CODESYS Forge
talk
(Thread)
CANopen slave crashes on "Start Remote Node" command from master, SYNC related
Last updated: 2022-07-08
Exception durch EthernetIP Scanner 3.5.15.0
CODESYS Forge
talk
(Thread)
Exception durch EthernetIP Scanner 3.5.15.0
Last updated: 2019-12-06
LoadFile - delete button goes to exception
CODESYS Forge
talk
(Thread)
LoadFile - delete button goes to exception
Last updated: 2018-11-23
3.5.14.40 WebVisu STOP Program loaded - Exception
CODESYS Forge
talk
(Thread)
3.5.14.40 WebVisu STOP Program loaded - Exception
Last updated: 2020-04-05
Raspberry Pi, Simulator, Trace - Exception
CODESYS Forge
talk
(Thread)
Raspberry Pi, Simulator, Trace - Exception
Last updated: 2014-09-09
i2c communication - exception every minute
CODESYS Forge
talk
(Thread)
i2c communication - exception every minute
Last updated: 2015-11-15
Pi3 + V3.5 SP16 Runtime exception
CODESYS Forge
talk
(Thread)
Pi3 + V3.5 SP16 Runtime exception
Last updated: 2020-06-22
To search for an exact phrase, put it in quotes. Example: "getting started docs"
To exclude a word or phrase, put a dash in front of it. Example: docs -help
To search on specific fields, use these field names instead of a general text search. You can group with AND
or OR
.