AC500 Analog Input & Output linking
Dear friends, i have an Analog Input & Analog Output . For AI 4-20 mA stands for 0-250 for AO 4-20mA stands for 0-1000. When AI is 250 AO should be 1000 , when AI is 200 AO should be 800 & when AI is 150 AO should be 600. I understand scaling of 0-27648 counts for AI & AO, but how to make the logic. Im new to Ac500. Kindly help.
Voted best answer
Hello, You can use the by default FB "LIN_TRAFO" from the default library "util.lib".This will serve your purpose. Please look the Help of "LIN_TRAFO" for further help.
Source: Codesys Help
Answers
Use the following code to create a function, and call it according to the attached screen shot. I do not know the physical address of the Analog I/O you are using, so you would replace them with yours.


by anshul.puri Rank: 527 on 2/23/2015 9:16:30 AM | Like (0) | Report
Im making logic in FBD
Add new comment