Académique Documents
Professionnel Documents
Culture Documents
Year:=BCD_TO_INT (%SW53);
MillSecond:=MS;
Submit Feedback
Function description
This function block displays the status of the PLC.
SYSSTATE is task-specific and can be used in MAST, FAST and AUX tasks.
SYSSTATE cannot be used in EVT tasks.
EN and ENO can be configured as additional parameters.
Representation in FBD
Representation:
Representation in LD
Representation:
Representation in IL
Representation:
CAL SYSSTATE_Instance (COLD=>ColdStartCycle,
WARM=>WarmStartCycle, ERROR=>ErrorInBuffer)
Representation in ST
Representation:
SYSSTATE_Instance (COLD=>ColdStartCycle,
WARM=>WarmStartCycle, ERROR=>ErrorInBuffer) ;
Parameter description
Description of output parameters:
Parameter Data Description
type
COLD BOOL Is set for one cycle to "1", when the user task is in a cold start cycle, i.e.
the first start after the project has been completely loaded.
COLD operates inversely to the user task bit in %SW10 (TSKINIT).
WARM BOOL Is set for one cycle to "1" when the PLC or the user task is started, i.e.
after switching on the power or by starting the SPS after a stop.
When a STOP->RUN transition of the corresponding tasks occurs,
WARM is set to "1".
After the logic of the corresponding tasks have been completed, WARM is
set to "0".
WARM is identical to the user task specific system bit %S21.
ERROR BOOL Is set to "1" when there are error messages in the diagnostic buffer that
have not yet been acknowledged.
ERROR is set to "1" if %SW78 (DNBERRBUF) is not "0".
NOTE: In cold start cycle both outputs COLD and
WARM are set to "1".
© 2010 Schneider Electric. All rights reserved.
EN
EN stands for ENable; it is an optional block input. When the EN input is enabled, an ENO
output is set automatically.
If EN = 0, the block is not enabled; its internal program is not executed, and ENO is set to 0.
If EN = 1, the block's internal program is run and ENO is set to 1. If an error occurs, ENO is set
to 0.
If the EN input is not connected, it is set automatically to 1.
ENO
ENO stands for Error NOtification; this is the output associated with the optional input EN.
If ENO is set to 0 (because EN = 0 or in case of an execution error):
the status of the function block outputs remains the same as it was during the previous
scanning cycle that executed correctly;
the output(s) of the function, as well as the procedures, are set to "0".
BOOL
BOOL is the abbreviation for the Boolean type. This is the basic data type in computing. A
BOOL variable can have either of the following two values: 0 (FALSE) or 1 (TRUE).
A bit extracted from a word is of type BOOL, for example: %MW10.4.
Copy As Example
Copy As Template
LD 模拟量处理
AI配置段
C
AI工程值转换
C
LD 上电初始化
FBI_83
TON
%I\1.1\1.6.1.1 VDI[1]
IN Q
t#500ms PT ET
FBI_84
TON
%I\1.1\1.6.2.1 VDI[2]
IN Q
t#500ms PT ET
FBI_85
TON
%I\1.1\1.6.3.1 VDI[3]
IN Q
t#500ms PT ET
FBI_86
TON
%I\1.1\1.6.4.1 VDI[4]
IN Q
t#500ms PT ET
ST 数字量输入处理
FOR i:=1 TO 96 BY 1 DO
DDI[i]:=DI_DI[i];
END_FOR;
LD 命令解释及操作记录处理
FBI_265
EN ENO
M L[1]
Ctrl _Com m [1] T ag_DX Com m and S
1 Val ue_DX
1 Val ue_NO
14 Val ue_XZ
FBI_266
EN ENO
M L[2]
Ctrl _Com m [1] T ag_DX Com m and S
1 Val ue_DX
1 Val ue_NO
15 Val ue_XZ
FBI_267
EN ENO
M L[3]
Ctrl _Com m [1] T ag_DX Com m and S
1 Val ue_DX
1 Val ue_NO
16 Val ue_XZ
FBI_70
Record_OP_QP
COM PARE
Ctrl _Com m [7]=1 Record_Add Year Record_OP[1]
NO Record_OP[9]
XZ Record_OP[10]
YY Record_OP[11]
OperNo Record_OP[12]
OPERAT E OPERAT E
Ctrl _Com m [5]:=0; Ctrl _Com m [6]:=0;
OPERAT E OPERAT E
Ctrl _Com m [7]:=0; Ctrl _Com m [8]:=0;
LD 输出管理
FBI_229
T ON
ML[1] ML[1]
IN Q R
t#3S PT ET
DDO[1]
FBI_230
T ON
ML[2] ML[2]
IN Q R
t#3S PT ET
DDO[2]
FBI_231
T ON
ML[3] ML[3]
IN Q R
t#3S PT ET
DDO[3]
SECTION RUNG
LD AI 工程值转换
.1
I_ S CA L E
A IF[1 ]
/ EN E NO
0 .0 MN Y A I[1 ]
1 5 0 .0 MX
.2
I_ S CA L E
A IF[2 ]
/ EN E NO
0 .0 MN Y A I[2 ]
1 5 0 .0 MX
.3
I_ S CA L E
A IF[3 ]
/ EN E NO
0 .0 MN Y A I[3 ]
1 5 0 .0 MX
.4
I_ S CA L E
A IF[4 ]
/ EN E NO
0 .0 MN Y A I[4 ]
V A I[2 ] MX
.1 7
A DD
EN E NO
V A I[1 ] IN2
.5
I_ S CA L E
A IF[5 ]
/ EN E NO
0 .0 MN Y A I[5 ]
1 5 .0 MX
.6
I_ S CA L E
A IF[6 ]
/ EN E NO
0 .0 MN Y A I[6 ]
1 5 .0 MX
.7
I_ S CA L E
A IF[7 ]
/ EN E NO
0 .0 MN Y A I[7 ]
1 5 .0 MX
.8
I_ S CA L E
A IF[8 ]
/ EN E NO
0 .5 MN Y A I[8 ]
1 .0 MX
.9
I_ S CA L E
A IF[9 ]
/ EN E NO
0 .4 MN Y A I[9 ]
4 .5 MX
.1 0
I_ S CA L E
A IF[1 0 ]
/ EN E NO
-1 5 0 .0 MN Y A I[1 0 ]
1 5 0 .0 MX
.1 1
I_ S CA L E
A IF[1 1 ]
/ EN E NO
-1 5 0 .0 MN Y A I[1 1 ]
1 5 0 .0 MX
.1 2
I_ S CA L E
A IF[1 2 ]
/ EN E NO
4 5 .0 MN Y A I[1 2 ]
5 5 .0 MX
.1 3
I_ S CA L E
A IF[1 3 ]
/ EN E NO
0 .0 MN Y A I[1 3 ]
4 5 0 .0 MX
.1 4
I_ S CA L E
A IF[1 4 ]
/ EN E NO
0 .0 MN Y A I[1 4 ]
2 0 0 0 .0 MX
.1 5
I_ S CA L E
A IF[1 5 ]
/ EN E NO
0 .4 MN Y A I[1 5 ]
4 .5 MX
.1 6
I_ S CA L E
A IF[1 6 ]
/ EN E NO
0 .0 MN Y A I[1 6 ]
1 0 0 .0 MX
AI 配置段
FBI_60 .1
1 2 FBI_61
SYSSTATE OR_BOOL 3
QUANTUM
COLD IN1 OUT EN ENO
WARM IN2 SLOT1
ERROR SLOT2
FBI_63
SLOT3
4
SLOT4 ACI040
SLOT5
SLOT6 SLOT
SLOT7 CHANNEL1 AI1_CH[1]
SLOT8 CHANNEL2 AI1_CH[2]
SLOT9 CHANNEL3 AI1_CH[3]
SLOT10 CHANNEL4 AI1_CH[4]
SLOT11 CHANNEL5 AI1_CH[5]
SLOT12 CHANNEL6 AI1_CH[6]
SLOT13 CHANNEL7 AI1_CH[7]
SLOT14 CHANNEL8 AI1_CH[8]
SLOT15 CHANNEL9 AI1_CH[9]
SLOT16 CHANNL10 AI1_CH[10]
CHANNL11 AI1_CH[11]
CHANNL12 AI1_CH[12]
CHANNL13 AI1_CH[13]
CHANNL14 AI1_CH[14]
CHANNL15 AI1_CH[15]
CHANNL16 AI1_CH[16]