Welcome to the Industrial Automation website!

NameDescriptionContent
HONG  KANG
E-mail  
Password  
  
Forgot password?
  Register
当前位置:

SIEMENS SIMATIC S5 series PLC STEP 5 programming software

来源: | 作者:FAN | 发布时间 :2025-11-25 | 7 次浏览: | Share:

Timer/Counter Timer type (power on delay/power off delay), counter type (up/down count) T0 is set as power on delay type, C0 is set as up count type

Fault diagnosis function:

Diagnostic buffer: Automatically records two types of fault information, supporting users to quickly locate problems:

Program failure: syntax errors (such as address out of bounds), logical errors (such as dead loops);

Hardware failure: missing I/O module, communication interruption, power failure;

Status indicator light: The software interface displays real-time PLC running mode (RUN/STOP), communication status (green=normal, red=interrupted), and fault status (yellow=warning, red=serious fault).

image.png

Programming specifications and address ranges

1. Address allocation rules

The address of S5 series PLC adopts the "byte bit" format (such as I0.0), and the address range of each type is fixed, which must be strictly followed:

Address Type Address Range Bit Usage Description

Input (I) I0.0-I127.7 1024 bit to receive signals from external sensors, buttons, etc

Output (Q) Q0.0-Q127.7 1024 bit control external relays, indicator lights, motors, etc

Flag bits (F) F0.0-F127.7 1024 bits store program intermediate variables and logical states

Timer (T) T0-T255 256 to achieve delay control (such as T3 delay of 10s)

Counter (C) C0-C255 256 implements counting function (such as triggering action when C5 count value reaches 100)

Data block (DB) DB0. DBX0.0- DB255. DBX127.7 stores numerical data (such as temperature and pressure) with 32768 bits

2. Grammar Standards (Taking Common Languages as Examples)

STL (Statement Table): Combination of instructions and addresses, executed on a row by row basis, with one instruction per row:

Basic logic instructions: A I0.0 (normally open contact closed), O I0.1 (normally closed contact closed),=Q0.0 (output coil energized);

Timer instructions: L K5 (load delay value of 5s), T T3 (write value to timer T3), A T3 (delay timer T3 until the rear contact closes);

Counter instructions: L K10 (load count value 10), C C5 (write value to counter C5), A C5 (close contacts when counter C5 is full).

LAD (ladder diagram): Following the logic of "left power supply → contacts → coil → right power supply", the contacts and coils are arranged graphically:

Normally open contact: The symbol is "┌-------", corresponding to STL instruction A;

Normally closed contact: symbol "┌ -/-", corresponding to STL instruction AN;

Output coil: symbol "-- () --", corresponding to STL command=.


Operation process and application scenarios

1. Complete operation process

Preliminary preparation:

Install STEP 5 software (Windows XP needs to run in "compatibility mode");

Connect the PLC to the computer (one end of the MPI cable is connected to the PLC's MPI port, and the other end is connected to the computer serial port/USB-MPI adapter);

Start the software and confirm the PLC model (such as S5-115U CPU 943) through the "PLC → Identify" function to ensure that the software is compatible with the hardware.

Program development:

New Project: "File → New Project", name the project (such as "Production Line Control"), select the PLC model;

Create block: "Block → Create", sequentially create OB1 (main loop block), FB1 (motor control block), DB1 (background data block);

Write command: call FB1 (CALL FB1, DB1) in OB1, and write motor start stop logic in FB1 (such as I0.0 start, I0.1 stop, Q0.0 control motor);

Grammar Check: "Edit → Syntax Check" to fix syntax errors (such as address errors and missing instructions).

Online debugging:

Download program: "PLC → Load Block", select the block to be downloaded (OB1/FB1/DB1), confirm and download to PLC;

Switching mode: Switch the PLC from STOP mode to RUN mode, and the software interface displays a green "RUN" indicator light;

Monitoring and modification: Check the on/off status of I0.0/I0.1 on the LAD interface, use the "Modify" function to modify parameters in DB1 (such as motor running time), and verify whether the program logic is correct.

Maintenance management:

Program backup: "PLC → Save Block", upload the program in the PLC to the computer and save it as a ". S5D" format file;

Troubleshooting: Check "Diagnosis → Buffer", locate the problem based on the fault code (such as "E01: Address Out of Range"), modify the program or replace the hardware;

Program optimization: Adjust the logic according to on-site requirements (such as adding fault alarm function), re download and test.

2. Typical application scenarios

Traditional production line control: Based on S5-115U PLC and STEP 5, write production line logic programs (such as material conveying and assembly process control), and adjust production parameters (such as conveying speed) in real time through online monitoring;

Industrial machine tool control: On the S5-135U PLC, use STEP 5 to write machine tool processing logic (such as spindle start stop, tool switching), use FB blocks to package different processing processes, and improve program reusability;

  • GE VPROH2B IS215VPROH2BC turbine protection board
  • GE F650BFBF2G0HIE feeder protection relay
  • GE SLN042 IC086SLN042-A port unmanaged switch
  • GE SR489-P1-HI-A20-E Generator Management Relay
  • GE IS400JPDHG1ABB IS410JPDHG1A track module
  • GE IS410STAIS2A IS400STAIS2AED Industrial Control Module
  • GE IS410STCIS2A IS400STCIS2AFF Industrial Control Module
  • GE DS200DCFBG2BNC DS200DCFBG1BNC DC Feedback Board
  • GE VME5565 VMIVME-5565-11000 332-015565-110000 P Reflective Memory
  • GE VMIVME-7807 VMIVMME-01787-414001 350-00010078007-414001 D module
  • GE IS220PDOAH1A 336A4940CSP2 Discrete Output Module
  • GE VMIVME-4150 Analog Output Module
  • GE WESDAC D20 PS Industrial Power Module
  • GE 369B1860G0031 servo drive module
  • GE 369B1859G0021 Input/Output Module
  • GE 208D9845P0008 Motor Management Relay
  • GE IS420UCSCH1A-F.V0.1-A Independent Turbine Controller
  • GE D20EME10BASE-T 820-0474 Ethernet Interface Module
  • GE DS200DCFBG2BNC MRP445970 DC Feedback Board
  • GE IC800SSI228RD2-EE servo motor controller
  • GE IS200JPDMG1ACC S1AT005 Digital Input/Output (I/O) Module
  • GE IS200TSVCH1AED servo input/output terminal board
  • GE IS200TTURH1CCC S1DF00Z Terminal Turbine Plate
  • GE IS200TSVCH1ADC S1CX01H servo input-output board
  • GE IS200TRPGH1BDD S1C5029 Trip Solenoid Valve Control Board
  • GE IS220YAICS1A L Analog Input/Output Module
  • GE UCSC H1 IS420UCSCH1A-F-VO.1-A Controller Module
  • GE UCSC H1 IS420UCSCH1A-B Communication Processing Module
  • GE IC697VDD100 Digital Input Module
  • GE V7768-320000 3509301007768-320000A0 Controller Module
  • GE IS410TRLYS1B Relay Output Module
  • GE IS415UCVGH1A V7666-111000 VME Control Card
  • GE IC800SSI216RD2-CE servo motor controller
  • GE VMIVME-5565-010000 332-01565-010000P Reflective Memory
  • GE IC695ALG508-AA Analog Input Module
  • GE IC660EPM100J Power Monitoring and Control Module
  • GE RS-FS-9001 362A1052P004 Redundant Fan System Module
  • GE IS220UCSAH1AK independent processor module
  • GE 369-HI-0-M-0-0-0-E Motor Management Relay
  • GE CIFX50-C0 interface board
  • GE SR469-P5-H-A20-T Motor Management Relay
  • GE WES5120 2340-21005 power module
  • GE WES5120 2340-21003 Control Module
  • GE D20MIC10BASE-T 820-0756 Ethernet Module
  • GE WES13-3 5167-001-0210 Mechanical Relay Output Module
  • GE WES13-3 2508-21001 Control Board Module
  • GE D20ME 526-2005-216943 Input/Output Module
  • GE D20EME 0526-21170-1 PLC module
  • GE 2400-21004 2010-3101-0442 Sensor
  • GE DS200DCFBG2BNC MRP569662 Analog Input/Output Board
  • GE DS200DCFBG2BNC MRP569662 DC Feedback Board
  • GE IC695CPE400-ABAB Controller
  • GE DS200DCFBG2BNC MRP433745 Drive Control Board
  • GE DS200DCFBG2BNC MRP420024 DC Feedback Board
  • GE IS200PPPBH2CAA power module
  • GE IS210MACCH2AGG Compact Controller
  • GE IS200AEPAH1AFD Printed Circuit Board
  • GE IS200AEPAH1ACB redundant power module
  • GE IS200WREAS1ADB Relay Output Module
  • GE IS200AEPAH1AHD Printed Circuit Board
  • GE IS200WEMAH1AEA Wind Energy Main Assembly
  • GE IS210MACCH1AGG Turbine Control Module
  • GE IS230TNRLH1B Terminal Base Station Relay Module
  • GE DS200PCCAG1ACB Power Connection Card
  • GE DS200SI0CG1AEA Instant Overcurrent Card
  • GE DS200SHVMG1AGE servo valve interface module
  • GE DS200SI0CG1A6A Input/Output Module
  • GE DS200RT8AG3AHC Programmable Logic Controller
  • GE VMICPCI-7632-03310 IS215UCCAH3A 350-657362-003310J Rack mounted Input/Output Module
  • GE WEA13-13 2508-21001 Embedded Digital Module
  • GE WES5120 2340-21004 Controller Main Module
  • GE WES5120 2340-21006 on-site control host
  • GE WESDAC D20ME 18-MAR-13 Excitation Control Module
  • GE D20 EME 27-APR-13 Input/Output Module
  • GE D20 EME 2400-21004 Substation Controller
  • GE SR745-W2-P1-G1-HI-A-L-R-E Transformer Protection Relay
  • GE SR745-W2-P1-G1-HI-A-L-R Transformer Management Relay
  • GE IS230TNDSH2A Independent Output Relay Module
  • GE IS200TDBSH2ACC Terminal Module
  • GE PMC-0247RC-282000 350-93750247-282000F Disk Drive
  • GE VMIVME-5576 high-speed fiber optic reflective memory
  • GE 760-P1-G1-S1-LO-A20-R-E feeder management relay
  • GE 760-P1-G1-S1-LO-A20-R 760 Series Management Relay
  • GE 760-P5-G5-S5-HI-A20-R-E Motor Management Relay
  • GE IS200AEPAH1BKE IS215WEPAH2BB Printed Circuit Board
  • GE IS210BPPCH1AEC Programmable Monitoring System
  • GE WESDAC D20ME II Remote Terminal Unit (RTU) Main Processor Card
  • GE IC693DSM302-AE Discrete Output Module
  • GE IS220PRTDH1A 336A4940CSP6 temperature sensor input module
  • GE IS420ESWBH3AX Ethernet Switch
  • GE EVPBDP0001 EVPBDP032 output module
  • GE V7668A-131000 350-93100076668-131000 B Control Module
  • GE IS200SPROH1AAB MRP663860 Turbine Protection Relay
  • GE VG5SK8I052311 PM0N2000 Digital Input Module
  • GE MVR1600-4601 air-cooled rectifier module
  • GE CT11T7F10PN1 PMC676RCTX V2.3 01 16 C1145 CR11 V2.X Network Interface Card
  • GE IS215UCVHM06A IS200PMCIH1ACC Controller
  • GE IC695CPU315-BB Programmable Logic Controller
  • GE WES5120 5120-1506 High Performance Field Controller
  • GE D20-PS LFDSC143-4000 processor
  • GE 8811-IO-DC 8811-IO-DC-01 Digital Input/Output Module
  • GE VMIVME-7750 VMIVMME-7750-834 350-02775-834 D Bus Interface Module
  • GE VMIVME-7750 VMIVMME-7750-760000 350-027750-76000 N Bus Processor
  • GE IS210BPPBH2BMD redundant power module
  • GE IS220PDIAH1A 336A4940CSP1 Discrete Input Module
  • GE IC698CMX016 VMIVME-5567-000 350-005567-000 Industrial Module
  • GE V7768-320000 350-9301007768-320000 A0 Controller Module
  • GE IS215VCMIH2CA IS200VCMIH2CAA Communication Interface Board
  • GE IS215UCVGM06A IS215UCVGH1A VMIVMME-7666-11000 Serial Communication Module
  • GE SR745-W3-P5-G5-HI Transformer Protection Relay
  • GE IS220PDIIH1B 336A5026ADP1 Input/Output Module
  • GE IS200SDIIH1ADB MRP683026 Contact Input Isolation Terminal Board
  • GE WESTEM D20 M++CNC System
  • GE SR745-W2-P1-G1-HI-E-H Generator Relay Protection Device
  • GE SR469-P5-HI-A20-H motor protection relay
  • GE IS200TDBTH6ACD gas turbine control system module
  • GE WESDAC D20 C Combination Module
  • GE IC698CMX016 Control Memory Switch Module
  • GE SRPE60A 40 rated plug
  • GE 94-164136-001 motherboard control board
  • ABB PCD237A101 3BHE028915R0101 excitation control module
  • ABB XZC826A102 3BHE036348R0102 control module
  • ABB SAFT183VMC Safety Monitoring and Control Module
  • ABB LD 810HSE EX 3BSE091722R1 fieldbus link equipment
  • ABB RED615 HCDCACADAAHC2BNN11E Line Differential Protection and Control
  • ABB UFC760BE41 3BHE004573R0141 Industrial Computer Board
  • ABB 1TGE120011R2200 Motor Feed Control Unit
  • ABB PM865 3BSE030193R1 Compact Programmable Controller