Hi all
I need some help to move from s5 to s7 programming.
Here is an S5 program that I need to know how to do in s7.
Lets say I have a 4 digit thumbwheel switch at IW124 and I want to use the right hand digit to specify where the left three digits are transferred to.
e.g
FB1
LIW124
LKH000F
AW
TFW20;right hand digit on it's own
LIW124
LKHFFF0
AW
SRW4
TFW22;left hand digits on their own
LFW22
DO FW20
TDWO;transfer FW22 to the data word specified by FW20
I am having trouble with doing the last part in s7 I can't work out how to make the pointer variable under S7 ?
LFW22
DO FW20
TDWO
Any help would be great.
I need some help to move from s5 to s7 programming.
Here is an S5 program that I need to know how to do in s7.
Lets say I have a 4 digit thumbwheel switch at IW124 and I want to use the right hand digit to specify where the left three digits are transferred to.
e.g
FB1
LIW124
LKH000F
AW
TFW20;right hand digit on it's own
LIW124
LKHFFF0
AW
SRW4
TFW22;left hand digits on their own
LFW22
DO FW20
TDWO;transfer FW22 to the data word specified by FW20
I am having trouble with doing the last part in s7 I can't work out how to make the pointer variable under S7 ?
LFW22
DO FW20
TDWO
Any help would be great.