I paste the code below......
NAME: DB-CHNG
DECL: Q-DB DKF
DECL: Z-DB DKF
DECL: Q-DW DKF
DECL: Z-DW DKF
DECL: LAE DKF
DECL: ANZW AW
DECL: CHNG ABI
LW =Q-DB
ADD DH 000EEC00
LIR 1
SLD 4
T MW 200
KZW
SPZ =M001
LW =Q-DW
LW =LAE
+F
ADD BF -1
T MW 204
L MW 200
ADD BF -1
LIR 1
ADD BF -6
>F
SPB =M001
LW =Z-DB
ADD DH 000EEC00
LIR 1
SLD 4
T MW 202
KZW
SPZ =M002
LW =Z-DW
LW =LAE
+F
ADD BF -1
T MW 206
L MW 202
ADD BF -1
LIR 1
ADD BF -6
>F
SPB =M002
L MW 204
L MW 200
+F
T MW 204
T MW 210
L MW 206
L MW 202
+F
T MW 206
T MW 212
LW =LAE
T MW 208
-F
T MW 214
M004: L MW 210
LIR 1
L MW 212
LIR 1
><F
SPB =M003
L MW 210
ADD BF -1
T MW 210
L MW 212
ADD BF -1
T MW 212
L MW 214
>F
SPB =M004
BEA
M003: L MW 204
L MW 206
B MW 208
TNW 0
L KB 0
T =ANZW
S =CHNG
BEA
M001: LW =Q-DB
T =ANZW
BEA
M002: LW =Z-DB
T =ANZW
BE
and the CPU type is 948
i appreciate you support..
Hello,
the block looks like a part of a standard package for something together with other blocks. On the first view the block seems to copy data words from one data block into another data block. That can be simply achieved in S7 with the MOVE function. But there is the paramerter CHNG which is set in this block but is not get reset.
Try to find out from which package this block is from. Or maybe somebody knows here. It is possible that you dont need to transfer the block into S7 while there is another package already existing for the S7.
Converting S5 to S7 is not allways transferring block by block into S7. And the converter function may be usefull in converting simple logic operations only. I never used the converter and use the S5 programm just as a reference.
Regards.
-------------------------------------------------------------------------------------------------------
Give us your feedback and show us your respect!
We take our free time to support you with our knowledge and experience.
If this post is helpfull to you kindly click on "Rate" or "Thank".