Hello. I have a 16LVIN card that I'm trying to use with CODESYS.
I followed the basic "Getting Started" tutorial and have CODESYS Control running successfully on the RPi (https://content.helpme-codesys.com/en/CODESYS Control/_rtsl_first_steps.html). I also installed the 16LVIN library in my CODESYS development environment (https://github.com/SequentMicrosystems/SM_CODESYS/tree/main/SM_16LVIN). I'm able to successfully run your "SM_16LVIN_Example" project and test that the DI pins are working correctly.
I'm trying to write my own programs now using Ladder Logic. How do I address the DI pins in this langauge? Looking at your Structured Text example code, you seem to create an array of boolean variables, and make a function call (SM_16LVIN.inOpto) to write all DI values to this array. How do I reproduce this in Ladder? Is there a more traditional method of mapping spcific addresses to variables?
Thank you!
I followed the basic "Getting Started" tutorial and have CODESYS Control running successfully on the RPi (https://content.helpme-codesys.com/en/CODESYS Control/_rtsl_first_steps.html). I also installed the 16LVIN library in my CODESYS development environment (https://github.com/SequentMicrosystems/SM_CODESYS/tree/main/SM_16LVIN). I'm able to successfully run your "SM_16LVIN_Example" project and test that the DI pins are working correctly.
I'm trying to write my own programs now using Ladder Logic. How do I address the DI pins in this langauge? Looking at your Structured Text example code, you seem to create an array of boolean variables, and make a function call (SM_16LVIN.inOpto) to write all DI values to this array. How do I reproduce this in Ladder? Is there a more traditional method of mapping spcific addresses to variables?
Thank you!