VEGA VEGACOM 557 Profibus FMS User Manual
Page 42
42
VEGACOM 557 Profibus FMS
Setup
0050 : — check meas. value no. MWNR —
0052 :L =MWNR range: MWNR = 1..256
0054 :L KH 0000
0058 :!=F
005A :SPB =ERR
005C :
005E :D 1
0060 :L KF +255
0064 :<=F
0066 :SPB =OK
0068 :SPA =ERR Error: meas. value no. too big
006A OK :
006C : ==== write order block ===
006E :L =DB
0070 :T DW 9 Aim DB in order
0072 :L =OFFS
0074 :T DW 10 Offset from aim DB in order
0076 :
0078 : — Index and SubIndex emit.—
007A :L =MWNR Calculation for MWNR=0...255:
007C :ADD KF -1 Index = MWNR/16
0080 :T =MWNR SubIndex=MWNR-Index*16+1(1..16)
0082 : Index = Start Index + Index
0084 :
0086 :
0088 :SRW 4
008A :T MW 254 Index
008C :
008E :SLW 4
0090 :T MW 252 -MW 16 * Index
0092 :
0094 :L =MWNR
0096 :L MW 252 -MW
0098 :-F
009A :I 1
009C :T DW 18 SubIndex in order
009E : ———
00A0 :L DW 2 Start Index
00A2 :L MW 254
00A4 :+F
00A6 :T DW 17 Index in order
00A8 :
00AA :L =MWNR Correct MWNR
00AC :D 1
00AE :T =MWNR
00B0 : ——— Read order to CP ———
00B2 :O M 0.0
00B4 :ON M 0.0
00B6 :SPA FB 244
00B8 Name :SEND
00BA SSNR : KY 0,0 interface no.= 0
00BC A-NR : KY 0,1 order number = 1
00BE ANZW : MW 2
00C0 QTYP : KC DB order in DB240 up from DW4
00C2 DBNR : KY 0,240
00C4 QANF : KF +4
00C6 QLAE : KF +16
00C8 PAFE : MB 255
00CA :
00CC :L KH 0000