forward reverse AGV

4 years 1 month ago #29532318 by davidski
forward reverse AGV was created by davidski
We have built a large number of AGVs using vbl2360 controllers and Mag tape sensors.
I am building a forward and reverse AGV and would like to know how to discriminate the forward and reverse Mag tape sensor in the Script so that i can change over to the relevent sensor depending on what direction the AGV is to travel.
I can only find reference to _mgd, mgt, mgm,1 and mgm,2.
MY PROBLEM IS HOW DO I DIFFERENTIATE BETWEEN THE FORWAR AND REVERSE SENSOR?

Please Log in or Create an account to join the conversation.

4 years 1 month ago #29532326 by blake
Replied by blake on topic forward reverse AGV
The simplest way is to have the second sensor attached to another pulse input.

Then, assuming sensor 1 is on pulse 1 and sensor 2 on pulse 2:

To enable sensor 1
Setconfig(_PMOD, 1, 4) ' enable 1 as magsensor
Setconfig(_PMOD, 2, 0) ' disable 2

To enable sensor 2
Setconfig(_PMOD, 2, 4) ' enable 2 as magsensor
Setconfig(_PMOD, 1, 0) ' disable 1

Please Log in or Create an account to join the conversation.

Time to create page: 0.131 seconds