Hey
Hi,
I programmed some things in an FC. But I used 3 bits that had to be remembered, so I made a struct of 8 bits in the temp area. It is called MemoryByte.
So I wrote this in the first network:
LAR1 P##MemoryByte
L #MEMORY
T LW [AR1,P#0.0]
and this in the last:
LAR1 P##MemoryByte
L LW [AR1,P#0.0]
T #MEMORY
MEMORY is an IN_OUT, on the outside of the block I connected MB75. See images.
The bits are not remembered, How come ?
Hi,
I programmed some things in an FC. But I used 3 bits that had to be remembered, so I made a struct of 8 bits in the temp area. It is called MemoryByte.
So I wrote this in the first network:
LAR1 P##MemoryByte
L #MEMORY
T LW [AR1,P#0.0]
and this in the last:
LAR1 P##MemoryByte
L LW [AR1,P#0.0]
T #MEMORY
MEMORY is an IN_OUT, on the outside of the block I connected MB75. See images.
The bits are not remembered, How come ?