Hi,
problem I have is... I have a step program, and in step 60 I get a break of a few seconds, while everything seems to be good... I did not write the code myself and have some questions about this step, here is the code:
Ponsbank and Aanvoer are set in positions 2 and 7. From "DB aanvoer1".toestemming until label M154 there is action code and step/step compares, to work in step/step (test mode). When running automatically "DB aanvoer1".toestemming is high, so in automatic mode we jump over code into label M154, this means that the problem should be found there...
Is the and function of the 2 compares well written ???
problem I have is... I have a step program, and in step 60 I get a break of a few seconds, while everything seems to be good... I did not write the code myself and have some questions about this step, here is the code:
Code:
M153: A "DB aanvoer1".Stappen[60]
JCN S120
AN "DB aanvoer1".toestemming
JC M154
S "DB ponsbank1 uitg".EVP200in
R "DB ponsbank1 uitg".EVP200uit
S "DB ponsbank1 uitg".EVP201in
R "DB ponsbank1 uitg".EVP201uit
R "DB ponsbank1 uitg".EVP202in
S "DB ponsbank1 uitg".EVP202uit
R "DB ponsbank1 uitg".EVP203in
S "DB ponsbank1 uitg".EVP203uit
S "DB ponsbank1 uitg".EVP204in
R "DB ponsbank1 uitg".EVP204uit
L "DB ponsbank1 pos".P[2]
T "DB ponsbank1 uitg".motorsend
L "DB aanvoer1 pos".P[7]
T "DB aanvoer1 uitg".motorsend
A(
CALL "Comparer avec Marge"
IN1 :="DB aanvoer1 pos".P[7]
IN2 :="DB aanvoer1 uitg".motorres
Marge:=5.000000e-003
A BR
)
JNB M156
CALL "Comparer avec Marge"
IN1 :="DB ponsbank1 pos".P[2]
IN2 :="DB ponsbank1 uitg".motorres
Marge:=5.000000e-003
M156: A BR
A "FC200-"
A "FC201-"
A "FC202+"
A "FC203+"
A "FC204-"
A "DB scherm".stapknop
R "DB aanvoer1".toestemming
M154: A(
CALL "Comparer avec Marge"
IN1 :="DB aanvoer1 pos".P[7]
IN2 :="DB aanvoer1 uitg".motorres
Marge:=5.000000e-003
A BR
)
JNB M157
CALL "Comparer avec Marge"
IN1 :="DB ponsbank1 pos".P[2]
IN2 :="DB ponsbank1 uitg".motorres
Marge:=5.000000e-003
M157: A BR
A "FC200-"
A "FC201-"
A "FC202+"
A "FC203+"
A "FC204-"
JCN S120
R "DB aanvoer1".Stappen[60]
S "DB aanvoer1".Stappen[300]
L 61
T "DB scherm".stapaanvoer1
Ponsbank and Aanvoer are set in positions 2 and 7. From "DB aanvoer1".toestemming until label M154 there is action code and step/step compares, to work in step/step (test mode). When running automatically "DB aanvoer1".toestemming is high, so in automatic mode we jump over code into label M154, this means that the problem should be found there...
Is the and function of the 2 compares well written ???