I saw on youtube this guy said you can read values on the RPi4 SPI with python3 scripts then bring those values into codesys3.5 to use in a POU. I have been searching online for an example of this, but can not find it. He only showed executing a python script not reading from it. Attached is an example python script that I made to reads inputs 0 & 1 which are 4-20mA transmitters and 4 & 5 which are 10K NTC, beta 3892 thermistors on the MCP33131. It pulls the values and prints them to the console...
I saw on youtube this guy said you can read values on the RPi4 SPI with python3 scripts then bring those values into codesys3.5 to use in a POU. I have been searching online for an example of this, but can not find it. He only showed executing a python script not reading from it. Attached is an example python script that I made to reads inputs 0 & 1 which are 4-20mA transmitters and 5 & 6 which are 10K NTC, beta 3892 thermistors on the MCP33131. It pulls the values and prints them to the console...