Emerson HASXEE-IM-HS TV Video Accessories User Manual


 
Emerson Process Management GmbH & Co. OHG A-41
X-STREAM XE
Instruction Manual
HASXEE-IM-HS
04/2010
A
Appendix
PLCQuickReferenceCard
Rev.201004
ExampleProgram
#-Example for Timer 1---------------------
TMR_MODE 1 OFFDELAY;
TMR_DURATION 1 5; delay 5 sec
#-Example for Timer 2---------------------
TMR_MODE 2 ONDELAY;
TMR_DURATION 2 5; delay 5 sec
#-Example for Timer 3---------------------
TMR_MODE 3 REPPULSE;
TMR_DURATION 3 5; pulse width 5 sec
TMR_PERIOD_CNT 3 20; periode 20 sec
#-Example for Timer 4---------------------
TMR_MODE 4 SINGLEPULSE;
TMR_DURATION 4 5; pulse width 5 sec
#-Example for Timer 5---------------------
TMR_MODE 5 RETRIGSPULSE;
TMR_DURATION 5 5; pulse width 5 sec
#-Example for Timer 6---------------------
TMR_MODE 6 INHIBSPULSE;
TMR_DURATION 6 10; pulse width 10 sec
#-Example for Timer 7---------------------
TMR_MODE 7 CLKTRGPULSE;
TMR_DURATION 7 5; pulse width 5 sec
TMR_PERIOD_CNT 7 10; pulse trigger is repeated each 10 minutes
TMR_TRIG_TIME 7 2009,10,26,17,00; start triggering Oct26 2009, 05:00 pm
#-Example for Timer 8---------------------
TMR_MODE 8 COUNTER;
TMR_PERIOD_CNT 8 10; preset count value = 10
#--------------------------------
LOAD DI1; Digital Input#1
STO T1I1,T2I1,T3I1; feed Input1 of Timers1..3 with this state
STO R9; assign Digital Input#1 also to Result#9
LOAD DI5; load Digital Input#2
STO T1I2,T2I2,T3I2; feed Input2 of Timers1..3 with this state
#--------------------------------
LOAD T1; read Timer 1 output
STO R1; store as Result#1
#--------------------------------
LOAD DI5; read Digital Input #5
IF R10,R2; if DI5 then load Result#10 else load Result#2
CALL A110; simulate an 'External Failure" of Ch1 if loaded with '1' state
LOAD T3; read Timer 3 output
CALL A311; simulate an "MaintRequ" of Ch3 if loaded with '1' state
#--------------------------------
LOAD S62; CalcA rslt Lo
STO R3; store as Result#3
LOAD S208; Ch2 calibrating
STO R4; store as Result#4
END; Program end
A.7 PLC Quick Reference