BS2p-40 Questions
Archiver
Posts: 46,084
Hi everyone,
Please can I pick your brains?
The interrupts on the BS2p-40, can they be assigned to any I/O?
If an interrupt is detected can it run a routine within the current
program slot or does it have to jump to a new slot? If you are
polling to see if a machine guard is opened, do you really have to
jump to a new program slot just to carry our the necessary stop
routines. Then you have to go and restart the original program again
and try and get back to where you were?
thanks for the help
Jon
Please can I pick your brains?
The interrupts on the BS2p-40, can they be assigned to any I/O?
If an interrupt is detected can it run a routine within the current
program slot or does it have to jump to a new slot? If you are
polling to see if a machine guard is opened, do you really have to
jump to a new program slot just to carry our the necessary stop
routines. Then you have to go and restart the original program again
and try and get back to where you were?
thanks for the help
Jon
Comments
writes:
Yes.
program slot or does it have to jump to a new slot? ·If you are
polling to see if a machine guard is opened, do you really have to
jump to a new program slot just to carry our the necessary stop
routines. ·Then you have to go and restart the original program again
and try and get back to where you were?
As far as automatic operation, you can do a PRUN which will cause the Stamp
to run another program slot. ·Unfortunately, there is not PGOTO or PGOSUB.
If you design your code to run as a task switcher, you may find that you can
get the performance you want. ·In the "main" section (the code that actaully
calls each task in order [noparse][[/noparse]using BRANCH]), you can check to see if your
polled-pin was active recently (be sure to use a PMODE that latches the pin)
and take action accordingly.
HTH
-- Jon Williams
-- Dallas, TX
[/font]