Professional Documents
Culture Documents
Program example
When PV1100, PV280, PV3150 and PV450, '0' valve is on in the district Irom 0 to PV1 oI high-speed counter,
'2' valve is on in the district Irom PV2 to PV3 oI high-speed counter and '3' valve is on in the district Irom PV3 to
PV4 oI high-speed counter. The output preset value can be used Ior the input oI other Iunction or Iunction block in
other program. The program example is the case that the output contact and value is set as below.
VALVE : QB0.0.0 ~ POS 0
VALVE|0| : QX0.0.0
VALVE|1| : QX0.0.1
VALVE|2| : QX0.0.2 ~ MASK 16#0F
VALVE|3| : QX0.0.3
I_HSC 8. Function/Function block libraries
8-119
LD IL
CAL I_HSC INT_HSC
REQ := START
RST := RESET
POS := POS
MASK:= MASK
PV_1:= PV1
ST_1:= 1
PV_2:= PV2
ST_2:= 2
PV_3:= PV3
ST_3:= 4
PV_4:= PV4
ST_4:= 8
LD INT_HSC.DONE
ST END
LD INT_HSC.ERR
ST ERROR
LD INT_HSC.STG
ST STAGE
LD INT_HSC.OUT
ST OUT
LD INT_HSC.CV
ST CUR_VAL
The time chart is as below.
PEO
PST
OJT
ST0
1 ? 4 8
1 ? 3 4
CV
PV11OO
PV?8O
PV31SO
PV4SO
OONE