Jump to content

How can I implement a high speed counter for paper rolling project?


Recommended Posts

Hi all,

I am a fairly new  and inexperienced programmer when it comes to using Visilogic software; my experience lies more in implementation of the Unilogic/Unistream line of software and controllers. Because of this, I wanted to ask if someone could show me how to write a simple subroutine for a high speed counter using the Visilogic software. My current project involves using a digital input that produces square-wave pulses and I need to use these pulses to make the HSC count how many feet of paper are rolled onto a drum as they come off a product line.

I would also appreciate it if someone who has done a similar project could share their code with me as well if it was done using Visilogic software.

Best and thanks for the help.

Link to comment
Share on other sites

Also, I am using a v130 controller with the external EX-A2X expansion adapter and Unitronics IO-DI8-R08 expansion unit. I have also completed hardware configuration for the HSC on address "I38,39" but do not understand why this address is used? The expansion unit only has inputs 0-7.

Capture.PNG

Link to comment
Share on other sites

  • MVP 2023

The first expansion I/O module always starts address at 32. This allows room for a potential Snap-In module that starts at address 0. Each (digital I/O) module after will start at the next increment of 16, regardless of how many addresses were taken up by prior modules.

Link to comment
Share on other sites

Flex727,

Thank you for explaining the input addressing to me, things are starting to make a lot more sense now.

Ausman,

I am referring to the Vision 130-J-B1 PLC (listed as the V130-33-B1 in the Hardware Config. in the Visilogic software); my apologies for not including those details. Unfortunately, I do not have information on the kHz rate for the sensor at the moment; I will have to ask my boss for this and will update you when I have that number. I have looked through the online manual for the DI8-T08 expansion module and am aware that the HSC is located on I7 and the reset on I6. What are the limitations for the HSC you are referring to?

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

Important Information

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