Sei sulla pagina 1di 12

Documentation and ASCII Archives

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.1
Target
FUNCTION_BLOCK FB1
(*$_COM Sequencer Assembly Line
(Example)
*)

(*$_CMPSET
S7Graph version: 5000
WarningLevel: None
FBInterface: UserDefined
SSBLevel: Array
ASMsgLevel: No
TargetMachine: AS300
RuntimeBlock: FC
CritAvail: F
SSkipOn: F
AckReq: F
SyncAvail: F
PermILMan: F
SWMLocked: F
InitVarStat: 4401
*)

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.2
Documentation Basis

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.3
Print Range, General Settings

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.4
Application Settings, Print Setting Tab

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.5
Print Preview: Overview

Sequencer comment (up to 2048 characters)

Initial step

Transition with transition name (up to 24 characters)

Step with step name (up to 24 characters)

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.6
Print Preview: Single Page Display

Next page

Next page

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.7
Storing a Sequencer as ASCII

Sequencer as Exported ASCII source Archiving


ASCII archive file
FUNCTION_BLOCK FB1
(*$_COM Sequencer Assembly Line
(Example)
*)

(*$_CMPSET
S7Graph-Version: 5000
WarningLevel: None
FBInterface: UserDefined
SSBLevel: Array
ASMsgLevel: No
TargetMachine: AS300
RuntimeBlock: FC
CritAvail: F
SSkipOn: F
AckReq: F
SyncAvail: F
PermILMan: F
SWMLocked: F
InitVarStat: 4401
*)

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.8
Exporting GRAPH Source

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.9
Importing GRAPH Source

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.10
Example: ASCII Archive as GRAPH Source

FUNCTION_BLOCK FB1
(*$_COM Sequencer Assembly Line INITIAL_STEP Ground_State (*$_NUM 1*):
(Example) (*$_COM Step Comment*)
*)
INTERLOCK
(*$_CMPSET CONDITION := (NOT "INI1" AND NOT "INI2" AND NOT "INI3" AND "LB1" )
S7Graph-Version: 5000 END_INTERLOCK
WarningLevel: None "M_H1" (NC)
FBInterface: UserDefined END_STEP
SSBLevel: Array
ASMsgLevel: No STEP Part_finished (*$_NUM 2*):
TargetMachine: AS300 (*$_COM Step comment*)
RuntimeBlock: FC
CritAvail: F SUPERVISION
SSkipOn: F CONDITION := (I0.7 )
AckReq: F END_SUPERVISION
SyncAvail: F "Horn" (L T#2S)
PermILMan: F END_STEP
SWMLocked: F
InitVarStat: 4401
*)
VAR_INPUT
OFF_SQ : Bool := FALSE;(*Turn sequencer off (OFF_SEQUENCE)*)
INIT_SQ : Bool := FALSE;(*Set sequencer to initial state (INIT_SEQUENCE)*)
ACK_EF : Bool := FALSE;(*Acknowledge all errors and disturbances (ACKNOWLEDGE_ERROR_FAULT)*)
SW_AUTO : Bool := FALSE;(*Set automatic mode (SWITCH_MODE_AUTOMATIC)*)
SW_TAP : Bool := FALSE;(*Set inching mode 'T and T_PUSH' (SWITCH_MODE_TRANSITION_AND_PUSH)*)
SW_MAN : Bool := FALSE;(*Set manual mode (SWITCH_MODE_MANUAL)*)
S_SEL : INT := 0;(*Select step for display in S_NO (STEP_SELECT)*)
S_ON : Bool := FALSE;(*Activate step displayed in S_NO (STEP_ON)*)
S_OFF : Bool := FALSE;(*Deactivate step displayed in (STEP_OFF)*)
T_PUSH : Bool := FALSE;(*Enable transition to switch in SW_TAP and SW_TOP (PUSH_TRANSITION)*)
anal_addr : int := 0;
frequency : Bool := FALSE;
upper_limit : Real := 0.000000E+000;
threshold_high : int := 0;
threshold_low : int := 0;
END_VAR
VAR_OUTPUT
S_NO : INT := 0;(*Step number (STEP_NUMBER)*)
ERR_FLT : Bool := FALSE;(*Group error interlocks or supervisions (IL_ERROR_OR_SV_FAULT)*)
AUTO_ON : Bool := FALSE;(*SW_AUTO mode is active (AUTOMATIC_IS_ON)*)
TAP_ON : Bool := FALSE;(*SW_TAP mode is active (T_AND_PUSH_IS_ON)*)
MAN_ON : Bool := FALSE;(*SW_MAN mode is active (MANUAL_IS_ON)*)
weight_bcd : Bool := FALSE;
END_VAR

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.11
Exercise: Documentation, Storage as Text File

SIMATIC S7 Date: 19.07.2019 SITRAIN Training for


Automation and Drives
Siemens AG 2000. All rights reserved. File: GRAPH_05e.12

Potrebbero piacerti anche