Jump to content

Recommended Posts

Posted

The response time should be the same as the response time of the input.

 

The main variation would come from the program scan time as the immediate read would update the value mid scan instead of waiting until the next scan cycle to update.

 

If your scan time is 20ms and your input updates 1 ms into that, after inputs are normally read, it would be 21 ms before the value changes (assuming logic doesn't affect it). 

 

With the immediate function all logic following after the update portion would use the new value, maybe just a few ms to update from the immediate read.   This could cause some interesting logic bugs though, with one rung using a different value than another rung than intended due to the update.

  • MVP 2023
Posted

Put the immediate read and whatever logic you immediately care about in an interrupt routine.  If you use a 1.25 ms routine, your response time is 2.5 ms (the input has to be off for one scan).

 

This is only good for inputs directly attached to the PLC, not expansion I/O.

 

Joe T.

  • MVP 2023
Posted

Certain inputs can configured as High-Speed Counters that will count and/or measure frequency. Check the Help file and examples included with VisiLogic for more detail.

Posted

I have the following situation in attachments:

For such application you actually require a hardware input interrupt subroutine, This type of subroutine trigers on every rising or falling edge of the input.  In unitronics we don't have such subroutine. You can use a read immediate input function but action will be taken as per scan time of PLC. Minimum time will be 1.25mS. 2nd profile is posible because the speed is very slow before stoping, But in 1st profile there may be some errors as speed is very high and it may miss the stop plus because it will be scaned every 1.25 mS. I had tried using a V130-J-TR20 for labeling application but i had problems while stoping plus.

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
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.