74
S TA R T
Tu rn O u tpu t O F F
a t 1 0 R e vs
M o ve to 4 .2 5
re vs at 1 0 R P S
S to p M o ve A t
1 0.5 R e vs
R e d u ce sp ee d
to 2 R P S
R e tu rn to O rigin
a t 1 0 R P S
Tu rn o u tp ut on
a t 5 revs
E N D
A
A
Figure 12.6: On-The-Fly Application Flowchart
O n - T h e - F l y P r o g r a m C o d e
‘******** Parameter Setup ********
MUNIT = 51200
VI = 0.500
ACCL = 20
DECL = 50
IOS 31 = 0,1,0
‘Output - general purpose, active low
‘******** Program ********
PGM 1
LBL ONTHEFLY
TP1 = 5, PSUB1
‘Configure 1st position trip at 5 revs
TP2 = 10, PSUB2
‘Configure 2nd position trip at 10 revs
TPE1 = 1
‘Enable both position trips
TPE2 = 1
VM = 10
‘Initial max speed 10 rps
MOVA 4.25, 1
‘Move out to 4.25 revs at 10 rps
HOLD 0
VM = 2
‘Reduce max speed to 2 rps
MOVA 10.5
‘Move to 10.5 revs
HOLD 2
DELAY 250
VM = 10
‘Reset max speed to 10 rps
MOVA 0
‘return to origin
HOLD 2
END
LBL PSUB1
‘Turn on output at 5 revs.
IO 31 = 1
RET
LBL PSUB2
‘Turn off output at 10 revs
IO 31 = 0
RET
PGM
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from
Downloaded from