Hi,
When using Codesys control for Raspberry Pi the the GPIO’s in the CODESYS device tree had to be disabled espceifally when RevPiLED is to be used.
Your LED problem might be related to topic:
https://revolutionpi.com/forum/viewtopic.php?f=6&t=3023#p10839
The LEDs on the RevPi Connect are ...
Search found 199 matches
- 18 Aug 2025, 16:46
- Forum: Hardware
- Topic: RevPi Connect SE and 4 not updating built-in input and output on X2 connector in Codesys
- Replies: 6
- Views: 26427
- 06 Aug 2025, 14:31
- Forum: CODESYS
- Topic: Modebus RTU Master with CODESYS
- Replies: 1
- Views: 40798
Re: Modebus RTU Master with CODESYS
Hello Ethan,
Yes CODESYS project, the COM port 6, is correct for the Industrial Pi 4.
Can you confirm if you are running Bullseye or the latest Bookworm image?
/etc/codesyscontrol/CODESYSControl_User.cfg should include
[SysCom]
Linux.Devicefile=/dev/ttyAMA
It can be verified with ModbusRTU ...
Yes CODESYS project, the COM port 6, is correct for the Industrial Pi 4.
Can you confirm if you are running Bullseye or the latest Bookworm image?
/etc/codesyscontrol/CODESYSControl_User.cfg should include
[SysCom]
Linux.Devicefile=/dev/ttyAMA
It can be verified with ModbusRTU ...
- 01 Aug 2025, 11:46
- Forum: CODESYS
- Topic: Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules
- Replies: 3
- Views: 57349
Re: Issue with DO Channel Control in CODESYS on RevPi Connect 4 with DO/DI Modules
Dear Ananda,
Please try using Packed I/O Mapping or Grouped I/O Mapping
This means assigning a complete WORD variable (or BYTE, DWORD, etc.) to a
group of digital inputs or outputs
DO mapping.png
DI Mapping.png
In your ladder program you should use Bit access for your Input and Output ...
Please try using Packed I/O Mapping or Grouped I/O Mapping
This means assigning a complete WORD variable (or BYTE, DWORD, etc.) to a
group of digital inputs or outputs
DO mapping.png
DI Mapping.png
In your ladder program you should use Bit access for your Input and Output ...
- 16 Jul 2025, 10:45
- Forum: Hardware
- Topic: RevPi Connect SE and 4 not updating built-in input and output on X2 connector in Codesys
- Replies: 6
- Views: 26427
Re: RevPi Connect SE and 4 not updating built-in input and output on X2 connector in Codesys
Hi,
I suppose you are using the latest version.
RevPi Bookworm 64-bit (Default)
Revolution Pi Library for CODESYS v2.2.0.0
CODESYS Control for Linux ARM64 SL v4.16.0.0
It is important that the RevPi device (Connect SE) be at the root of the device tree. Any other devices, e.g., Ethernet devices ...
I suppose you are using the latest version.
RevPi Bookworm 64-bit (Default)
Revolution Pi Library for CODESYS v2.2.0.0
CODESYS Control for Linux ARM64 SL v4.16.0.0
It is important that the RevPi device (Connect SE) be at the root of the device tree. Any other devices, e.g., Ethernet devices ...
- 15 Jul 2025, 11:10
- Forum: Hardware
- Topic: USB-RS232 and onboard RS485 in parallel
- Replies: 2
- Views: 14004
Re: USB-RS232 and onboard RS485 in parallel
Hi,
Yes, you can use different serial ports (USB for RS232 and onboard for RS485) at the same time in CODESYS, as long as each serial port is mapped to a unique device file (for example /dev/ttyUSB0, /dev/ttyUSB2, /dev/ttyUSB3).
Each instance of the serial COM Port (SysCom in CODESYS) requires a ...
Yes, you can use different serial ports (USB for RS232 and onboard for RS485) at the same time in CODESYS, as long as each serial port is mapped to a unique device file (for example /dev/ttyUSB0, /dev/ttyUSB2, /dev/ttyUSB3).
Each instance of the serial COM Port (SysCom in CODESYS) requires a ...
- 03 Jul 2025, 16:21
- Forum: Hardware
- Topic: Trouble on Using DO in CODESYS
- Replies: 3
- Views: 24669
Re: Trouble on Using DO in CODESYS
Hi,
The problem is likely caused by the Ethernet interface being placed before the RevPi Connect 4 device in the CODESYS device tree.
You can also disable GPIO access if you are using the RevPi LEDs.
CODESYS_issue.png
Corrected project configuration:
CODESYS_correct.png
I would recommend ...
The problem is likely caused by the Ethernet interface being placed before the RevPi Connect 4 device in the CODESYS device tree.
You can also disable GPIO access if you are using the RevPi LEDs.
CODESYS_issue.png
Corrected project configuration:
CODESYS_correct.png
I would recommend ...
- 24 Jun 2025, 14:17
- Forum: CODESYS
- Topic: Build error using Revolution Pi Library for CODESYS v1.4.1.0 and v2.0.0.0 with CODESYS v3.5 SP21 (64bit)
- Replies: 10
- Views: 102442
Re: Build error using Revolution Pi Library for CODESYS v1.4.1.0 and v2.0.0.0 with CODESYS v3.5 SP21 (64bit)
Hello Rossano,
Thank you for the confirmation. We have released the same version that you tested.
https://revolutionpi.com/en/support/downloads
Archive CODESYS Drivers
Revolution Pi Library for CODESYS V1.4.2.0
The Revolution Pi Library for CODESYS V2.2.0.0 (CODESYS Development System V 3.5 SP21 ...
Thank you for the confirmation. We have released the same version that you tested.
https://revolutionpi.com/en/support/downloads
Archive CODESYS Drivers
Revolution Pi Library for CODESYS V1.4.2.0
The Revolution Pi Library for CODESYS V2.2.0.0 (CODESYS Development System V 3.5 SP21 ...
- 05 Jun 2025, 13:41
- Forum: CODESYS
- Topic: Build error using Revolution Pi Library for CODESYS v1.4.1.0 and v2.0.0.0 with CODESYS v3.5 SP21 (64bit)
- Replies: 10
- Views: 102442
Re: Build error using Revolution Pi Library for CODESYS v1.4.1.0 and v2.0.0.0 with CODESYS v3.5 SP21 (64bit)
Hello Rossano,
Please test the revolutionpibridge-V1.4.2.0-beta library package.
The library is compiled for CODESYS 3.5 SP19 and can be used with SP21.
https://packages.revolutionpi.com/buster/download/revolutionpibridge-V1.4.2.0-beta.zip
It can be used with the discontinued CODESYS Control for ...
Please test the revolutionpibridge-V1.4.2.0-beta library package.
The library is compiled for CODESYS 3.5 SP19 and can be used with SP21.
https://packages.revolutionpi.com/buster/download/revolutionpibridge-V1.4.2.0-beta.zip
It can be used with the discontinued CODESYS Control for ...
- 20 Feb 2025, 11:46
- Forum: CODESYS
- Topic: CODESYS 3.5 SP20 Patch 5 Problem mit DIO Modul - schaltet nur 2 Outputs
- Replies: 1
- Views: 27910
Re: CODESYS 3.5 SP20 Patch 5 Problem mit DIO Modul - schaltet nur 2 Outputs
Hi PAHO,
Can you please test with the attached sample example?
Connect4_DIO_Test.zip
The program sets the first 8 outputs of the first DIO module and the first 4 outputs of the second DIO module starting from the left of piBridge.
CODESYS_FE65mDjfPX.png
The following pictory configuration ...
Can you please test with the attached sample example?
Connect4_DIO_Test.zip
The program sets the first 8 outputs of the first DIO module and the first 4 outputs of the second DIO module starting from the left of piBridge.
CODESYS_FE65mDjfPX.png
The following pictory configuration ...
- 08 Jan 2025, 14:16
- Forum: Software
- Topic: No such file or directory: '/dev/ttyRS485'
- Replies: 14
- Views: 35026
Re: No such file or directory: '/dev/ttyRS485'
/dev/ttyRS485 in pictory is symbolic link to /dev/ttyUSB0
The port number 0 should not be mentioned in /etc/CODESYSControl_User.cfg . Actual entry therefore is
Now /dev/ttyUSB0 corresponds to COM port 1 in CODESYS for Connect /S
The port number 0 should not be mentioned in /etc/CODESYSControl_User.cfg . Actual entry therefore is
Code: Select all
[SysCom]
Linux.Devicefile=/dev/ttyUSB