Try replacing the dots by underscores in the variable names like I show you below. I used underscores all the time. I don't think you can use dots in variable names.
Switch_0 VAR PortA.0
Switch_1 VAR PortA.1
Robert
Try replacing the dots by underscores in the variable names like I show you below. I used underscores all the time. I don't think you can use dots in variable names.
Switch_0 VAR PortA.0
Switch_1 VAR PortA.1
Robert
Or
SWITCH var PortA
then
SWITCH.0
SWITCH.1
SWITCH.2
are valid names of each Bit/Port
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
or this way
switch var byte
switch.0 = portA.0
switch.1 = portA.1
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks for the suggestions. What worked well is the first sugggestion,
Switch_0 var Porta.0
Switch_1 var PortA.1
Now I can access the contents of the two switches through Switch.
Thanks again...Chris
Chris Shatara
Bookmarks