Sign in to follow this  
Followers 0
Joseph 0028

HSC VALUE MOVE AND RESET

2 posts in this topic

Hello Guys, I am doing this simple project to measure repeat length. I am using MicroLogix 1200 PLC, and encoder and contrast sensor. 

Logic is very simple, the encoder counts gives the repeat length, and when the contrast signal gives a signal, the encoder counts (HSC:0.ACC) should move to N7:0, and then should reset... So this N7:0 gives the repeat length... Now the HSC accumulator is working... I configured the Function files, and HSC0... Please see the pic...  

But the move and RAC are not working... Any help much appreciated... 

 

 

 

AB HSC.png

ab hsc 2.png

Edited by Joseph 0028

Share this post


Link to post
Share on other sites

The file (#3) you have set in HSC:0.PFN is typically called when an interrupt condition (hitting High Preset, Low Preset for example) occurs. Try moving this code into ladder 2 and see if it executes as you wish.

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