I am using jmobile from uniop with a codesys plc running version 2.3 i have digital signals working but cannot get analog inputs to read, i am using 4-20mA inputs but cannot see them being read by plc. Does any one have any ideas or is there a library i need to use?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am using jmobile from uniop with a codesys plc running version 2.3 i have digital signals working but cannot get analog inputs to read, i am using 4-20mA inputs but cannot see them being read by plc. Does any one have any ideas or is there a library i need to use?
Hi
How you declared your variable?
it shud be QW%
thanks
sarath
sarath wrong
VAR
xCounterHeat7 AT %QX0.0: BOOL;
wLightcabinetimpulse AT %IW2: WORD;
xDownload AT %MX2.2: BOOL;
END_VAR
have a look at oscat.de library using input1 function block.
as the input first bits are used for error control.
Yes
For analog input
fourtorwenty:AT %IW3000;
Actual reading depends on calibration inside
for analog output
tenvolts :at %QW2016;
Thanks in my previous post i mentioned was analog output assignment