PLC and Ladder · SYNTEC

CNC Emergency State Control — CNC.LAD Rows 4–7

C36 — Emergency Stop generation: /I132, R45.10, R45.11 and /O3 in CNC.LAD rows 4–7.

This page is also available in RU and PL.

CNC.LAD Rows 4–7 · Click the image to enlarge

At the beginning of the PLC program, the system signal C36 — Emergency Stop is generated and transmitted from the PLC to the CNC. This section is part of the machine's overall safety logic: when any of the specified conditions is met, the PLC activates C36, after which the CNC stops motion and enters the NOT READY state.

C36 Generation Logic

In rows 4–7 of CNC.LAD, four conditions are connected in parallel. Therefore, activation of any one of these branches is sufficient to activate C36.

         ┌── /I132 ────────────┐
         │                     │
         ├── R45.10 ───────────┤
         │                     │
         ├── R45.11 ───────────┼─── ( C36 )
         │                     │
         └── /O3 ──────────────┘

The logical expression for this section can be represented as follows:

C36 =
    NOT I132
 OR R45.10
 OR R45.11
 OR NOT O3

The contact types used directly in the Ladder logic must also be taken into account: R45.10 and R45.11 are used as normal contacts, while I132 and O3 are used as inverted contacts /I132 and /O3.

C36 = /I132 OR R45.10 OR R45.11 OR /O3
C36 = ¬I132 ∨ R45.10 ∨ R45.11 ∨ ¬O3
Click the image to enlarge

Row 4 uses the inverted contact /I132. Therefore, the absence of the active I132 state is one of the conditions used to generate C36.

I132 = OFF
     ↓
/I132 = TRUE
     ↓
C36 = ON

R45.10 — MACHINE ALARM

Bit R45.10 is associated with the user-defined MLC alarm 20091 — MACHINE ALARM.

20091 = "1;MSG=(R45.10)MACHINE ALARM"

Therefore, the active state of R45.10 directly participates in the generation of C36.

R45.10 = ON
      ↓
MLC 20091 MACHINE ALARM
      ↓
C36 = ON
      ↓
Emergency Stop → CNC

In this section, R45.10 is therefore used as the general Machine Alarm signal included in the CNC emergency stop logic. The generation of R45.10 is analyzed separately using the corresponding sections of the CNC.LAD file.

R45.11 — SYSTEM ALARM

Bit R45.11 corresponds to the user-defined MLC alarm 20092 — SYSTEM ALARM.

20092 = "1;MSG=(R45.11)SYSTEM ALARM"

Therefore, when R45.11 is active, the SYSTEM ALARM state is also one of the conditions used to generate C36.

For further analysis of R45.11, the Cross Reference function in Ladder Editor is used. Its logic can be found, among other locations, around rows 905–911 of the CNC.LAD file.

Rows 905–911 CNC.LAD · Click the image to enlarge

This logic uses the internal bit A398. Its generation is located in row 878:

CMP =
#3419
R99
        → A398
Row 878 CNC.LAD · Click the image to enlarge

Relationship Between R99 and MLC System Parameter

According to the Syntec resource allocation table, the R81–R100 range is assigned to MLC System Parameter and corresponds to system parameters 3401–3420.

R81–R100 = MLC System Parameter

R81  ↔ System Parameter 3401
R82  ↔ System Parameter 3402
...
R92  ↔ System Parameter 3412
R93  ↔ System Parameter 3413
R94  ↔ System Parameter 3414
R95  ↔ System Parameter 3415
...
R98  ↔ System Parameter 3418
R99  ↔ System Parameter 3419
R100 ↔ System Parameter 3420

Therefore, R99 provides the Ladder program with the value of MLC System Parameter No. 3419.

In row 878 of CNC.LAD, R99 is used by the CMP instruction together with the #3419 operand, and the result of this logic is associated with the internal bit A398. The exact meaning of the #3419 operand must be interpreted according to the Syntec CMP instruction syntax.

System Parameter 3419
        ↓
       R99
        ↓
   CNC.LAD

A398 is then used in the logic that generates R45.11 — SYSTEM ALARM. The complete machine-specific logic of this section is analyzed separately using rows 905–911 of CNC.LAD.

/O3 — SERVO ON

In the machine-specific output table, O3 is defined as:

O3 = SERVO ON

Row 7 uses the inverted contact /O3. Therefore, the absence of the active O3 state is one of the conditions used to generate C36.

O3 = OFF
   ↓
/O3 = TRUE
   ↓
C36 = ON

The SERVO ON state is therefore directly included in the overall CNC safety logic.

Transmission of the Emergency State to the CNC

C36 belongs to the PLC → CNC interface. In the Syntec documentation, this signal is defined as C036 — Emergency Stop.

When C36 is activated, the CNC stops motion and enters the NOT READY state.

/I132
   │
R45.10 — MLC 20091 MACHINE ALARM
   │
R45.11 — MLC 20092 SYSTEM ALARM
   │
/O3 — SERVO ON inactive
   │
   ▼
C36 — Emergency Stop
   │
   ▼
PLC → CNC
   │
   ▼
motion stop
   │
   ▼
NOT READY

Diagnostic Significance of This Section

Rows 4–7 of CNC.LAD combine several critical PLC states into a single CNC emergency stop system signal.

Therefore, when C36 is active, the diagnostic process can be divided into four branches:

BranchMeaning
/I132I132 inactive
R45.10MLC 20091 — MACHINE ALARM
R45.11MLC 20092 — SYSTEM ALARM
/O3SERVO ON inactive

The active branch can then be traced using Cross Reference in CNC.LAD. For physical inputs and outputs, software diagnostics are linked to the electrical part of the machine: the I/O module, terminals, wiring, and the corresponding electrical devices. Detailed circuits are analyzed in the relevant documentation sections and the corresponding parts of the CNC.LAD file.

Function of this section:

rows 4–7 combine several critical PLC states into a single C36 — Emergency Stop signal, through which the PLC informs the CNC that motion must be stopped and the system must enter the NOT READY state.

The basic analysis tools are described in “PLC, Ladder Editor and Cross Reference in the SYNTEC CNC System”.

← All materials in PLC and Ladder