Learn Omron-cx-programmer - 10 Code Examples & CST Typing Practice Test
Omron CX-Programmer is Omron’s flagship IEC 61131-3 compliant PLC programming software for developing, testing, monitoring, and maintaining automation programs for Omron PLCs, including CP, CJ, CS, and NJ/NX series controllers.
View all 10 Omron-cx-programmer code examples →
Learn OMRON-CX-PROGRAMMER with Real Code Examples
Updated Nov 26, 2025
Code Sample Descriptions
Simple Output Control (ST)
IF CIO100 THEN
CIO000 := TRUE;
ELSE
CIO000 := FALSE;
END_IF;
Turns output CIO 0.00 ON when input CIO 1.00 is TRUE.
TON On-Delay Timer (TIMX Equivalent)
TIMX_1(IN := CIO101, PT := T#5s);
IF TIMX_1.Q THEN
CIO001 := TRUE;
END_IF;
Starts a 5-second timer and turns ON an output when done.
CTU Up Counter (CNT)
CTU_1(CU := CIO102, PV := 10);
IF CTU_1.CV >= 10 THEN
CIO002 := TRUE;
END_IF;
Counts rising edges on CIO 1.02. Turns ON CIO 0.02 at 10 counts.
Analog Scaling (0-4000 -> 0-100%)
Scaled := (REAL(D300) * 100.0) / 4000.0;
Omron analog input scaling example.
Motor Start/Stop Seal Circuit (ST)
IF CIO103 THEN
M_Start := TRUE;
END_IF;
IF CIO104 THEN
M_Start := FALSE;
END_IF;
CIO003 := M_Start;
Start button CIO 1.03, Stop button CIO 1.04, output latch at CIO 0.03.
Rising Edge Detection (Differentiation UP)
R_TRIG_1(CLK := CIO105);
IF R_TRIG_1.Q THEN
CIO004 := TRUE;
END_IF;
Detects positive edge on CIO 1.05.
FOR Loop Summing Registers
Sum := 0;
FOR i := 0 TO 9 DO
Sum := Sum + D[i];
END_FOR;
D50 := Sum;
Sum values from D0 to D9 into D50.
PIDAT Block Example (Omron PID)
PIDAT_1(
PV := D600,
SP := D610,
KP := 1.0,
TI := 2.0,
TD := 0.0,
OUT => D620
);
Basic PID instruction block for Omron PLC.
Simple PWM Output (ST Logic)
IF Ramp >= 100 THEN
Ramp := 0;
END_IF;
IF Ramp < Duty THEN
CIO005 := TRUE;
ELSE
CIO005 := FALSE;
END_IF;
Ramp := Ramp + 1;
Generates PWM on CIO 0.05 using a ramp counter.
Frequently Asked Questions about Omron-cx-programmer
What is Omron-cx-programmer?
Omron CX-Programmer is Omron’s flagship IEC 61131-3 compliant PLC programming software for developing, testing, monitoring, and maintaining automation programs for Omron PLCs, including CP, CJ, CS, and NJ/NX series controllers.
What are the primary use cases for Omron-cx-programmer?
PLC programming for Omron CJ/CS/CP platforms. Automation logic design for manufacturing lines. Real-time monitoring and debugging of PLC systems. I/O and device communications configuration. Maintenance and troubleshooting in industrial plants
What are the strengths of Omron-cx-programmer?
Highly stable for industrial environments. Strong online debugging and monitoring. Excellent compatibility with Omron PLC families. Rich instruction set for motion, PID, and communications. Well-optimized for factory maintenance teams
What are the limitations of Omron-cx-programmer?
Windows-only environment. Interface feels outdated compared to modern IDEs. Steeper learning curve for beginners. Not ideal for non-Omron PLC brands. Simulation features limited compared to next-gen platforms
How can I practice Omron-cx-programmer typing speed?
CodeSpeedTest offers 10+ real Omron-cx-programmer code examples for typing practice. You can measure your WPM, track accuracy, and improve your coding speed with guided exercises.