I have an AXC F 2152 that I connect to some legacy modules with an AXC F IL ADAPT. One of the legacy modules is the IB IL AO 2/UI-PAC analog output module.
Unfortunately, I fail to understand how I can configure the output channels and set values for the outputs.
For digital in- and outputs, I can just assign the corresponding process data items to variables in PLCnext engineer. But I don’t understand if and how this can be done with analog outputs. I can assign the corresponding process data items only to int and bool variables, not real. I also don’t know how to configure the type of signal with that approach.
I have imported the “AnalogTechnology” library from the PLCnext store. There, I figured that I should use the ANL_IL_AO_2_UI function block. While I seem to understand most of the logic of this function block, I fail to see how I can connect the function block to a certain hardware or process data item.
Can somebody point me in the right direction? Thanks!
Starting on page 10 of the data sheet, you can see the Output and Input Process Data. The process data is a series of WORD (16 bit) variables, which matches with what you see. The document describes how to use this process data to set the voltage or current values on the output terminals.
Once you’ve connected the process data to variables in your project, you can just set the values of those variables directly from your code, using the information in the data sheet as a guide. Once you understand how that works, you might want to use the Analog function block library to abstract the low-level process data manipulation.
Thank you Martin, this helped a lot. I wasn’t aware that the “channels” in the module data sheet are exactly the same as the “process data items” in PLCnext. Your answer clarified a lot.
Will look into the using functions from the library next.