"simulate" multi-thread on the BS2E
Jack Jordan
Posts: 24
Is it possibly to "simulate" a multithread output on the BS2e with the OUTL, OUTH command ?
variable_1·· VAR··· OUTL····[noparse]:D[/noparse]IRL %11111111
variable_2·· VAR·· ·OUTH··· [noparse]:D[/noparse]IRH %11111111
outData_1·· DATA··········· %10000001
outData_2·· DATA··········· %01000010
.... etc.
DO
··· READ Location, {Word} Variable {, {Word} Variable, ...}············· ' outData_1
·· READ Location, {Word} Variable {, {Word} Variable, ...}············· ' outData_2
LOOP
Thanks
Jack
variable_1·· VAR··· OUTL····[noparse]:D[/noparse]IRL %11111111
variable_2·· VAR·· ·OUTH··· [noparse]:D[/noparse]IRH %11111111
outData_1·· DATA··········· %10000001
outData_2·· DATA··········· %01000010
.... etc.
DO
··· READ Location, {Word} Variable {, {Word} Variable, ...}············· ' outData_1
·· READ Location, {Word} Variable {, {Word} Variable, ...}············· ' outData_2
LOOP
Thanks
Jack
Comments
What are you trying to do?
One 8 bit port can run two sepper motors in the same direction or +/- fortyfive, ninty degrees from the same data set, nest FOR...NEXT_Forward, FOR...NEXT_Reverse. It can also hold one motor and step the other.
The code at this time is cumbersum at best.
Jack