Date: File:GRAPH_05e.1 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Documentation and ASCII Archives
Date: File:GRAPH_05e.2 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives 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 *) 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 *) Target
Date: File:GRAPH_05e.3 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Documentation Basis
Date: File:GRAPH_05e.4 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Print Range, General Settings
Date: File:GRAPH_05e.5 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Application Settings, Print Setting Tab
Date: File:GRAPH_05e.6 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Initial step Transition with transition name (up to 24 characters) Step with step name (up to 24 characters ) Sequencer comment (up to 2048 characters) Print Preview: Overview
Date: File:GRAPH_05e.7 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Next page Print Preview: Single Page Display
Date: File:GRAPH_05e.8 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Sequencer as ASCII archive file Sequencer as ASCII archive file Exported ASCII source Archiving 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 *) 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 *) Storing a Sequencer as ASCII
Date: File:GRAPH_05e.9 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Exporting GRAPH Source
Date: File:GRAPH_05e.10 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Importing GRAPH Source
Date: File:GRAPH_05e.11 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives 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 *) 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 := E+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 INITIAL_STEP Ground_State (*$_NUM 1*): (*$_COM Step Comment*) INTERLOCK CONDITION := (NOT "INI1" AND NOT "INI2" AND NOT "INI3" AND "LB1" ) END_INTERLOCK "M_H1" (NC) END_STEP STEP Part_finished (*$_NUM 2*): (*$_COM Step comment*) SUPERVISION CONDITION := (I0.7 ) END_SUPERVISION "Horn" (L T#2S) END_STEP Example: ASCII Archive as GRAPH Source
Date: File:GRAPH_05e.12 SIMATIC S7 Siemens AG All rights reserved. SITRAIN Training for Automation and Drives Exercise: Documentation, Storage as Text File