Sign in to follow this  
Followers 0
Alfa20ad

4-20mA input (SCP)

19 posts in this topic

Sorry, Totally new to PLC programming. My question is that i have a 4-20mA input into a 1769-IF4 card, i have connected my 4-20mA input into V/I in 0- and I in 0+ When i write the SCP command for this input and go online the instruction can see the input change as i vary the 4-20mA signal but i cannot see the output side change as i do this on the function block What am i doing wrong? Also how would i achieve when the mA signal reaches a certain setpoint, this then triggers an output?

Share this post


Link to post
Share on other sites
Post your program so we can have a look

Share this post


Link to post
Share on other sites
The program must be a higher version than 19. I can't open it. It sounds like you aren't calling the routine

Share this post


Link to post
Share on other sites
What do you mean by not calling the routine. Can this image help? Edited by Alfa20ad

Share this post


Link to post
Share on other sites
Were you attaching something? Post a PDF

Share this post


Link to post
Share on other sites
Never mind. Is your health check program calling your compressor program with a JSR instruction?

Share this post


Link to post
Share on other sites
You need a jsr in your first program to jump to your second program. Just insert a new rung with a jsr instruction

Share this post


Link to post
Share on other sites
One other thing. Does the Allen-Bradley have a function similar to the P_On function like the Omron version?

Share this post


Link to post
Share on other sites
Done that, but still i can see the input increasing and decreasing but the output value stays at 0.0.

Share this post


Link to post
Share on other sites
Put and unconditional rung with an OTE going to an unused tag before your SCP and see if it turns on so we know if your rung is executing.

Share this post


Link to post
Share on other sites
One other dummy check. Is your processor in run mode?

Share this post


Link to post
Share on other sites
I can see it change now. Thanks. Just one other thing what instruction would i use to say if this input reaches say 5mA then energise an output.

Share this post


Link to post
Share on other sites
I would do GRT source a COMP1_33_SCALED source b the scaled value odd 5ma then an OTE instruction.

Share this post


Link to post
Share on other sites
P_ON... is that a pulse on? Have a look at the ONS.

Share this post


Link to post
Share on other sites
Looking for an instruction to say that the PLC is healthy. That is all.

Share this post


Link to post
Share on other sites
DDT instruction can be used for reading diagnostics Regards, Nelliyan.G Edited by Nelliyan

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0