Function Block Diagram (CSF): Use logical gate symbols to represent Boolean operations.
GRAPH 5: Graphic programming specifically designed for sequential control systems.
Program Structure and Block Types
STEP 5 adopts structured programming thinking to organize control programs into different types of blocks:
Organizational Block (OB): The interface between the operating system and user programs. OB1 is the main program that executes in a loop; OB21/OB22 handles cold start; OB2-OB5 response process interrupted; OB10-OB13 implements time interruption; Other OBs are used to handle errors or provide special features (such as PID algorithm OB251).
Program Block (PB)/Sequential Control Block (SB): Used to build structured user programs that can be divided by function or process.
Function Block (FB): A parameterized subroutine used to encapsulate complex or reusable functions. Supports basic, supplementary, and system operations, with powerful functionality.
Data Block (DB): Stores the recipe, set values, text information, and other data required by the program. DB1 is used for system function initialization, while DB0 is used by the operating system.
Core Programming Concepts
Process Image (PII/PIQ): The CPU reads the input signal to the Process Input Image (PII) at the beginning of each scanning cycle, and writes the Process Output Image (PIQ) to the output module at the end of the cycle. This batch processing method improves the consistency and efficiency of program execution. Users can also directly access I/O through commands such as "L PW" and "T PW" to achieve fast response.
Operand area: including input (I), output (Q), flag bit (F), timer (T), counter (C), data block (D), etc., providing clear storage space division for the program.
Nesting and Stacking: The program supports up to 32 levels of block call nesting. When called, the return address and current block information are stored in the block stack (BSTACK) to ensure that the program can return correctly.

System startup, debugging, and diagnosis
System startup and program testing
Power on and reset: After power on, the CPU executes a cold start routine to check the I/O module configuration. The mode selection switch can be used for "overall reset", clearing programs and all data from memory.
Program loading: The program can be directly downloaded to the CPU RAM through the programmer (PG), or burned to the EPROM/EEPROM submodule before inserting into the CPU. The CPU 943/944 will automatically load the contents of the submodule into the internal RAM for high-speed execution.
Test function:
Program Check: Step through the program and observe the signal status.
Status Display (STATUS/STATUS VAR): Real time signal status of online monitoring operands or direct reading of I/O.
FORCE VAR: Forcefully modify the values of variables such as I/O and flag bits, used to check wiring and output devices.
Comprehensive diagnostic capabilities
S5-115U has powerful self diagnosis and fault indication capabilities:
Interrupt Stack (ISTACK) Analysis: When the CPU stops due to a fault, the operating system stores the cause of the fault (such as "QVZ" timeout, "ZYK" scan cycle exceeding limit, "NNN" illegal instruction, etc.) and related contextual information in ISTACK. ISTACK can be read and analyzed through a programmer to quickly locate the root cause of the fault.
LED indicator lights: The LEDs on the CPU panel (RUN/STOP/QVZ/ZYK/BASP, etc.) and module channel LEDs provide intuitive status and fault indications.
Block Stack (BSTACK) Tracking: After a program stops due to an error, BSTACK can be viewed to trace the block call path at the time of the error, helping debug complex structured programs.
Installation Configuration and Electromagnetic Compatibility Guide
The manual provides detailed installation specifications to ensure reliable operation of the system:
Electrical installation: emphasizes the separation of control circuit and load circuit, equipotential connection, grounding specifications, and correct wiring methods for non isolated and isolated modules.
Cable laying and shielding: To suppress electromagnetic interference, it is required to separate and lay bus/signal lines, low-voltage power lines, and high-voltage power lines in groups. The signal cable should use a braided mesh shielding layer and achieve low impedance, large-area grounding at the point where the cable enters the control cabinet.
Environment and heat dissipation: The installation of the cabinet must ensure the minimum spacing between modules. When the power load exceeds 7A or high-power modules are used, fan components must be installed to ensure heat dissipation.
Communication and Advanced Features
S5-115U supports a wide range of communication options and is key to achieving factory automation:
Point to point connection: Direct data exchange between PLCs is achieved through the second serial port of CP 524/525 or CPU 943/944 (as the main station).
LAN: SINEC L1 industrial LAN can be accessed through modules such as CP 530.
ASCII driver: The second serial port of CPU 943/944 can be configured in ASCII driver mode to directly connect to standard serial devices such as printers and barcode readers.