How to connect an AI signal to AO
I want my AI signal to be connected to an AO channel in such a way that when I force my AI then the same forced value should be displayed in the AO channel.
I have used MOVE functional block i.e. I/P: AI tag & O/P: AO tag.
But when ever I am forcing the AI it's not displaying in the AO channel instead the original AI value is displaying in AO channel.
for ex: If the original AI=100 kg/cm2 & I have forced it to 250 kg/cm2, but the AO=100 kg/cm2 i.e. AO is not changing to 250 kg/cm2
can any one help me if there is any possibility to do as per my requirement.
Ensure your AI & AO range should be identical.
try below option.
Use Piecewiselinerblock, which has input pin as X ,output pin as Y. declare your input output mappings your AI & AO range should be same. for example AI range 0-100, AO 0-100. Then declare xy values as follows( x0y0,x25y25,x50y50,x75y75,x100y100).So now what ever you injecting mA in AI channel the same mA should be receive in Ao chennal too. ensure minimum and maximum value.
comment once you solve your issue.
AI Channels and AO channels work very slightly differently.
When you force an AI Channel you force the "Value" Parameter. But when you Force an AO channel you force the "IOValue" Parameter. If you directly copy the RealIO Datatype from the AI to the AO, then you are copying the AI.IOValue (unforced) over the top of the AO.IOValue. This is why your copy does not work.
Use one copy operation only and move AI.Value to AO.IOValue.