Positioning
IP 240
FB 30
NETWORK 1 0000 READ ACTUAL VALUE FROM IP 240
#############################
# #
# CYCLIC PROGRAM FOR X AXIS #
# #
#############################
NAME :X-ACHSE
0005 :C DB 128 -DBCH1
0006 :
0007 :JU FB 168 ------------------------------
0008 NAME :STEU.POS
0009 DBNR : KF +0
000A FKT : KY 1,0 READ ACT. VAL. AND STATUS AREA
000B PAFE : FY 200 -PAFE
000C :L FY 200 -PAFE
000D :L KH 0000
000F :><F
0010 :S F 65.7 -ERR07
0011 :
0012 :L DR 28
0013 :T FY 66 -FBPOS
0014 :L DR 29
0015 :T FY 63 -STATBITS
0016 :
0017 :***
FY 200 = PAFE SEE INSTRUCTION MANUAL SECT. 6.4
F 65.7 = ERR07 PAFE GROUP ERROR FLAG (->FY200)
FY 66 = FBPOS FEEDBACK POSITION NUMBER (DR28)
FY 63 = STATBITS STATUS BITS (DR29)
DB 128 = DBCH1 DATA BLOCK CHANNEL 1
NETWORK 2 0018 ENABLE / MAIN SWITCH
0018 :A I 32.0 -MAINSW --------------------------------
0019 :JC =NTW3
001A :A F 0.0 -RLO0 RESET PROGRAM
001B := Q 4.0 -POSDIR
001C := Q 4.1 -NEGDIR
001D := Q 4.2 -HOOTER
001E := Q 5.0 -OPENGR
001F := Q 5.1 -CLOSGR
0020 :L KH 0000
0022 :SD T 1 -POSTIMER
0023 :SD T 2 -STOPTIMER
0024 :SD T 3 -REFTIMER
0025 :T FY 60 -NPOS
0026 :T FY 61 -RESPONSE
0027 :T FY 62 -CNTL
0028 :T FY 63 -STATBITS
0029 :T FY 64 -STATUS
002A :T FY 65 -ERROR
002B :T FY 66 -FBPOS
002C :T FY 67 -EJECTPOS
002D :T DL 36
002E :JU FB 168
002F NAME :STEU.POS
0030 DBNR : KF +0
0031 FKT : KY 20,0 FORWARD CONTROL BITS TO IP
0032 PAFE : FY 200 -PAFE
0033 :BEU
0034 NTW3 :***
10-114
EWA 4NEB 811 6120-02a