namboothiripad.mbs
Member
Dear experts,
I have a program piece, which maintains a list of fixed no of words. On calling the FB, all words are pushed one location UP, so that the new word can be inserted at the top.
The program portion is as follows:
L RS 34
L KF +20
+F
LIR 1
LKF +203
+F
T FW210
ADD BN +1
T FW 212
L FW 210
L FW212
TNW 200
What is the function of the instruction L RS 34 ?
The manual for S5-155U says RS 34 is for IPC flags. From the code it
appears I am getting the address of starting address of DB20 after LIR 1
instruction.
The location for RS 34 is initialised by the PLC automatically or the programmer has to do something. In another program where I had to use TNW instruction, I hardcoded the address of the DB starting address. This
approach is much better.
The location for RS34 is same for 135U and 155U or not ?
Kindly help.
Namboothiripad.mbs
I have a program piece, which maintains a list of fixed no of words. On calling the FB, all words are pushed one location UP, so that the new word can be inserted at the top.
The program portion is as follows:
L RS 34
L KF +20
+F
LIR 1
LKF +203
+F
T FW210
ADD BN +1
T FW 212
L FW 210
L FW212
TNW 200
What is the function of the instruction L RS 34 ?
The manual for S5-155U says RS 34 is for IPC flags. From the code it
appears I am getting the address of starting address of DB20 after LIR 1
instruction.
The location for RS 34 is initialised by the PLC automatically or the programmer has to do something. In another program where I had to use TNW instruction, I hardcoded the address of the DB starting address. This
approach is much better.
The location for RS34 is same for 135U and 155U or not ?
Kindly help.
Namboothiripad.mbs