CreatingNew Blocks with SCLpdf,CreatingNew Blocks with SCLSIEMENSUser block: StructuresFBFCFOBBlock typeCASEDBUDTBlock attributeVAR INPUTVAR OUPUTVAR IN OUTFORVARWHILEREPEATVAR TEMPAlgorithmCONTINUEEXITGOTORETURNSIMATIC PCS 7SITRAINDate21.12.2007Siemens AG 2001. All rights reservedFile: ST-PCS7SY1 scl 3Siemens Automation and Drives TrainingSIEMENSDemonstration: Arithmetic blockARITArithmetic blockRXIY RRX2SCL sourceRX3Templates· Variable dec| arationAlgorithm· Compile+LoadTestSIMATIC PCS 7SITRAINDate21.12.2007Siemens AG 2001. All rights reservedFile: ST-PCS7SY1 scl 4Siemens Automation and Drives TrainingSIEMENSMenu InsertBlock Template- Control structureOBFFBCASEFCFORCommentWHILEConstantREPEATParameterDBInstance dBDB Referencing UDTUDTSIMATIC PCS 7SITRAINDate21.12.2007Siemens AG 2001. All rights reservedFile: ST-PCS7SY1 scl5Siemens Automation and Drives TrainingSIEMENSMenu EinfugenSIMATIC PCS 7SITRAINDate21.12.2007Siemens AG 2001. All rights reservedFile: ST-PCS7SY1 scl6Siemens Automation and Drives TrainingSIEMENSUser Block: Startup CharacteristicsOB nFBxFBxSFC6 RD SINFOOBmOB mdFBXSIMATIC PCS 7SITRAINDate21.12.2007Siemens AG 2001. All rights reservedFile: ST-PCS7SY1 sCL7Siemens Automation and Drives TrainingSIEMENSSIMATIC PCS 7SITRAINDate21.12.2007Siemens AG 2001. All rights reservedFile: ST-PCS7SY1 scl8Siemens Automation and Drives TrainingSIEMENSCompiler and DebuggerProjectS7 stationCPUSCLSymbols◆1. Edit blockS7 program2. compileSources --3. Load in the cpu4. DebuBlocksSIMATIC PCS 7SITRAINDate21.12.2007Siemens Automation and Drives TrainingSiemens AG 2001. All rights reservedFile: ST-PCS7SY1 scl 9SIEMENSAppendix: Source TextsSimulation blockREACTORSIMATIC PCS 7SITRAINDate21.12.2007Siemens AG 2001. All rights reservedFile: ST-PCS7SY1 sc. 10Siemens Automation and Drives Training