CANopen example
CODESYS Forge
talk
(Thread)
CANopen example
Last updated: 2017-11-24
Using Codesys example problems
CODESYS Forge
talk
(Thread)
Using Codesys example problems
Last updated: 2024-02-03
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
PubSub communication - example
CODESYS Forge
talk
(Thread)
PubSub communication - example
Last updated: 2024-03-25
Responsive Design Example
CODESYS Forge
talk
(Thread)
Responsive Design Example
Last updated: 2024-07-04
FB Factory example
CODESYS Forge
talk
(Thread)
FB Factory example
Last updated: 2024-08-12
Post by dagsupport on CAA SerialCOM - hCom Reset max value 1023
CODESYS Forge
talk
(Post)
Hi everybody We are currently working on a project with an RS232 serial COM interface and using the CAA SerialCOM library. We have it working fine reading and writing data, although we have found an issue we cannot resolve and any suggestions would be helpful. We have noticed that after a while the RS232 stops working. We have tracked this down to the HANDLE hCom keeps increasing and when this reaches 1023 the COM returns an unknown error "5003". Is there a way to reset this hCom reference? Thanks Richard
Last updated: 2024-03-22
Enable more than one COM port in raspberry for more modbus channels with USB
CODESYS Forge
talk
(Thread)
Enable more than one COM port in raspberry for more modbus channels with USB
Last updated: 2020-02-07
RTS signals are misaligned to Modbus COM port packets when using the RaspberryPi
CODESYS Forge
talk
(Thread)
RTS signals are misaligned to Modbus COM port packets when using the RaspberryPi
Last updated: 2022-09-05
What the right way to update TCP/COM slave device holding registers
CODESYS Forge
talk
(Thread)
What the right way to update TCP/COM slave device holding registers
Last updated: 2024-07-01
Post by kevinl on RevPi Connect RS485
CODESYS Forge
talk
(Post)
I figured this out on my own with this logic: usually the Serial port on a Raspberry pi is on /dev/ttyUSB0 then you need to set linux.DeviceFile=/dev/ttyUSB in codesys you then must set com port to 1 so i assumed codesys subtracts 1 from the number and adds this to the filename... (in code it would look like this: var comPort : byte := '1'; linuxDevice : string := '/dev/ttyUSB'; filename : string; end_var filename := concat(linuxDevice, (to_string(comPort-1)); filaname then is /dev/ttyUSB0 RevPi uses ttyRS485 as Serial port so you must remove the last number from the name and set the com port to this number +1 i hope this is understandable ;-)
Last updated: 2023-12-11
Post by damian177 on RPi, Codesys , RS232
CODESYS Forge
talk
(Post)
Hi, so far I have only used one com port - built-in interface in RPi - RS232 (dev/serial0) as COM1 in Codesys, and my CODESYControl_User.cfg have congiuration like below: [SysCom] Linux.Devicefile=/dev/serial portnum := COM.SysCom.SYS_COMPORT1 Actually I added to my Rpi Hat with 2xRS232 (SPI). - /dev/spidev0.0 and /dev/spidev0.1 How I should change my CODESYControl_User.cfg file to use added porta as COM2 and COM3 in Codesys ?
Last updated: 2023-10-05
Post by nltheves on Raspberry PI4 Serial Port
CODESYS Forge
talk
(Post)
Hi Ricardo. I was having the same problem with Codesys and a Raspberry Pi 2W while using the GPIO uart. Your post helped me a lot. Thanks! But could not understand why MODBUS parity bit makes Codesys MODBUS COM driver stopping to work after first request transmission. Did you see this @eschwellinger ? Regards, Nelson
Last updated: 2024-07-18
SERIAL CARD 750-652 library or sample code codesys v3.5.16.0 v4.0.1.0
CODESYS Forge
talk
(Thread)
SERIAL CARD 750-652 library or sample code codesys v3.5.16.0 v4.0.1.0
Last updated: 2022-09-22
PM564 ETH for reading data from modbus serial slave using COM1 port
CODESYS Forge
talk
(Thread)
PM564 ETH for reading data from modbus serial slave using COM1 port
Last updated: 2017-11-28
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
.