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 | 136 次浏览: | 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;

  • WESTINGHOUSE 5X00070G01 Ovation Module
  • Westinghouse 5X00605G01 Control Module
  • WESTINGHOUSE 5X00241G02 Ovation System Communication Module
  • WESTINGHOUSE 5X00226G03 Ovation Module
  • Westinghouse ZX345Q Control System
  • WESTINGHOUSE ST24B3 Temperature Transmitter
  • WESTINGHOUSE AID-1 Industrial Keyboard
  • Westinghouse 5X00241G01 Control Module
  • WESTINGHOUSE 5X00226G02 Ovation Controller Base Module
  • WESTINGHOUSE 5X00119G01 Ovation Module
  • Westinghouse 5X00105G14 Control Module
  • WESTINGHOUSE 5X00105G01 Ovation System Base Module
  • WESTINGHOUSE 5X00058G01 Ovation Controller
  • Westinghouse 5A26391H24 Control Module
  • WESTINGHOUSE 4D33942G01 Ovation I/O Communication Module
  • WESTINGHOUSE 3A99158G01 Ovation I/O Module
  • WESTINGHOUSE 3A99200G01 Control Module
  • WESTINGHOUSE 3A99132G02 Ovation System Power Module
  • WESTINGHOUSE 3A99132G01 Ovation Interface Module
  • WESTINGHOUSE 1X00416H01 Control Module
  • WESTINGHOUSE 1X00024H01 Ovation System Interface Module
  • WESTINGHOUSE 1C31227G02 Ovation I/O Module
  • Westinghouse 1C31194G03 Control Module
  • WESTINGHOUSE 1C31194G02 Ovation Controller Module
  • WESTINGHOUSE 1C31194G01 Ovation Controller Module
  • WESTINGHOUSE 1C31189G01 Control I O Module
  • WESTINGHOUSE 1C31179G02 Ovation Processor Module
  • WESTINGHOUSE 1C31164G02 Ovation Relay Output Module
  • Westinghouse 1C31161G02 RTD Input Module
  • WESTINGHOUSE 1C31150G01 Ovation DCS I/O Controller Module
  • WESTINGHOUSE 1C31113G02 Ovation Analog Input Module
  • WESTINGHOUSE 1C31129G03 Control Module
  • WESTINGHOUSE 1C31122G01 Process Controller | Ovation DCS Control Module
  • WESTINGHOUSE 1C31113G02 Ovation Analog Input Module
  • WESTINGHOUSE 1B30023H02 Control Module
  • WESTINGHOUSE 1B30035H01 Turbine Control System Module
  • WIDAP UFW30.156 6K8J175W0823 Power Resistor Technical Profile
  • WINGREEN IPB PCB V2.0_A01 03ZSTL6-00-201-RS Industrial Power Board
  • WINGREEN CANopen_ADAPTER V5.0_A01 03ZSTI-00-501-RS Module
  • WINGREEN PUIM V2.0 034STM4-00-200-RS Power Interface Module
  • WINGREEN DUDT_DETECTION_V2.0_A01 03ZSTJ0-00-201-RS Detection Control Board
  • WINGREEN LAIB V3.0_A00 034STN1-00-300-RS Embedded Industrial Motherboard
  • WINGREEN FAN_DETECTION V1.0_A05 03ZSTJ3-00-105Fan Monitoring Module
  • WINGREEN LAIB V3.0_A00 034STN1-01-300-RS Interface Board
  • WINGREEN ATKB_V5.0_A01 03ZSTI4-00-501 Industrial Control Keyboard Module
  • WINGREEN ATKB_V5.0_A01 03ZSTI4-01-501 Industrial Motherboard | Embedded Control Board
  • WINGREEN FPB_V3.0_A01 03ZSTJ1-00-301-RS Fieldbus Processor
  • WINGREEN DSPB_V4.0_A02 03ZSTI7-00-402-RS Digital Processing Board
  • WOHNER 31110 Cylindrical Fuse Holder
  • WOODHEAD APPLICOM PCI4000 PCI Communication Card Industrial DeviceNet CAN Bus Interface
  • Woodward 8440-1706 Industrial Control System Module
  • Woodward 8440-2052 H Synchronizer Load Share Module
  • Baldor KPD-TS12C-30E 12.1" Color TFT Touch Screen Ethernet HMI
  • Baldor KPD-TS10C-30E 10" Color TFT Touch Screen Operator Interface with Serial and Ethernet Interfaces
  • Baldor KPD-TS05C-30E 5.6" Color TFT Touch Screen with Serial and Ethernet Interface
  • Baldor KPD-TS05C-30 5.6 Inch Color TFT Touch Screen Serial Interface
  • Baldor KPD-TS05M-10 5.6" Monochrome Touch Screen Serial Interface HMI
  • Baldor KPD-TS03M-10 Monochrome Touch Screen Operator Interface
  • Baldor KPD-KG420-30 4x20 Graphic Display with 12 Function Keys - Serial Interface
  • Baldor KPD-KG420-20 4x20 Character Graphic Display Serial Interface
  • WOODWARD EASYGEN-3200-5 8440-1992 A Genset Controller
  • WOODWARD PEAK200-HVAC 8200-1501 C Version | Industrial Building Automation Controller
  • Woodward 8440-2052 easyGEN-3200 Genset Control Power Management
  • Woodward 8237-1246 + 5437-1119 Control System Module
  • WOODWARD SPM-D11 8440-1703 Overspeed Protection System Module
  • WOODWARD 8237-1369 Governor Control Module
  • Woodward 8237-1600 Digital Control Module
  • WOODWARD BUM60-1224-54-B-001-VC-A0-0093-0013-G003-0000 3522-1004 Industrial Control Module
  • WOODWARD 8200-1302 Genset Controller
  • Woodward 8901-457 Speed Control Module
  • WOODWARD 5501-465 Control Module
  • Woodward 5448-890 SPM-D10 Digital Control Module
  • WOODWARD 5437-1067A Turbine Governor Actuator
  • Woodward 8440-1666 B Digital Control Module
  • WOODWARD 8440-1706 A SPM-D11 Synchronous Phase Modulator Module
  • WOODWARD 5466-425 Programmable Automation Controller (PAC)
  • WOODWARD 5466-318- Industrial Gas Turbine Control Module
  • WOODWARD 5453-277 Digital Control Module
  • WOODWARD 5453-203 Digital Governor Control Module
  • WOODWARD 9907-1106 Pressure Converter
  • WOODWARD 5233-2089 Professional Industrial Control System Module
  • WOODWARD 9907-147 Power outage tripping overspeed protection system
  • WOODWARD 8237-1600 Digital Speed Control System
  • WOODWARD 8402-319 8402-119 microprocessor speed controller
  • Woodward 8237-1006 Digital Governor
  • WOODWARD 5501-471 Communication Module
  • WOODWARD 5466-258 Input/Output Module
  • WOODWARD 5501-467 Multi Protocol Communication Gateway and I/O Expansion Module
  • WOODWARD 5501-470 Digital microprocessor controller module
  • WOODWARD 9907-1200 Digital Governor
  • WOODWARD 8444-1067 High Performance Digital Microprocessor Controller Module
  • WOODWARD 8446-1019 Integrated Gas Engine Electronic Control System
  • WOODWARD 9907-162 Digital Engine Governor
  • WOODWARD 5466-316 Simulation Combination Module
  • WOODWARD 5464-414 Digital Speaker Sensor Module
  • XANTREX XFR40-70 DC power supply
  • XP POWER F8B6A4A6A6 power module
  • XP POWER F8B6D4A3G3 power supply
  • XYCOM XVME-674 VMEbus Single Slot CPU/Processor Module
  • XYCOM XVME-957 Circuit Board
  • XYCOM XVME-976 PC board computer
  • XYCOM XVME-530 8-Channel Isolated Analog Output Module
  • XYCOM Proto XVME-085 Bus Module
  • YAMAHA RCX40 4-AXIS ROBOT CONTROLLER
  • YAMATAKE EST0240Z05WBX00 touch screen display
  • YAMATAKE HD-CAOBS00 flowmeter
  • HIMA X-COM 01 Communication Module
  • HIMA HIMax X-AO 16 01 Analog Output Module
  • HIMA X-AI3251 Analog Input Module
  • HIMA X-DO3251 Digital Output Module
  • HIMA X-DI3202 Digital Input Module
  • HIMA X-DI6451 Digital Input Module
  • YASKAWA USAHEM-02-TE53 AC servo motor
  • Yaskawa JZNC-XPP02B Teaching Programmer
  • YASKAWA CACR-SR07BE12M servo drive
  • YASKAWA JAMSC-B2732V Advanced Drive Controller
  • YASKAWA JGSM-06 Controller
  • YASKAWA PCCF-H64MS 64MB Industrial Memory Module
  • YASKAWA CACR-02-TE1K servo driver
  • YASKAWA JAPMC-IQ2303 Controller Module
  • YASKAWA DDSCR-R84H Controller
  • YASKAWA JANCD-XTU01B circuit board
  • YASKAWA JANCD-XIO01 High Performance PC Input/Output (I/O) Board
  • YASKAWA JACP-317800 servo drive
  • XYCOM 120974 - Circuit Board
  • XYCOM 99298-200 - PC Control Card 99207A-001
  • XYCOM 99298-266 - CPU Board
  • XYCOM 99311-001 - Screen Display Ribbon Cable