Product manual
STEP 5 Programming IP 266
Reading of the input frame (PII) is only outlined. In practice, you would program
the response to specific system states to suit your particular requirements.
One practice-based application has been programmed in the function block.
Using M functions, you can trigger external activities
such as lower drill (M 30 in the example)
raise drill (M 40 in the example)
Activate the
"Lower drill"
function
Read actual values
Display errors
Read input
bytes
Activate the "Raise
drill" function
END
M 40
output?
yes
no
M 30
output?
yes
no
START
FB 20 - NAME:READ
Reading the mode, M function and status
byte and displaying errors
L IB 64 MODE
L IB 65 M FUNCTION
L IB 66 STATUS
L IB 67 ERRORS
T QB 5 DISPLAY
Reading the integer and decimal digits
L IW 68 INTEGER DIGITS
L IW 70 DECIMAL DIGITS
LIB65
L KB 30 M30
!=F LOWER DRILL
= Q 2.6 ==> LOWER DRILL
LIB65
L KB 40 M40
!=F RAISE DRILL
= Q 2.7 ==> RAISE DRILL
BE
9-32
EWA 4NEB 812 6057-02