Learn Mitsubishi-gx-works - 10 Code Examples & CST Typing Practice Test
Mitsubishi GX Works is an integrated software suite for programming, configuring, and monitoring Mitsubishi PLCs (Programmable Logic Controllers). It combines PLC programming, simulation, debugging, and device management in a single environment.
View all 10 Mitsubishi-gx-works code examples →
Learn MITSUBISHI-GX-WORKS with Real Code Examples
Updated Nov 26, 2025
Code Sample Descriptions
Hello World Output in GX Works (ST)
IF X0 THEN
Y0 := TRUE;
ELSE
Y0 := FALSE;
END_IF;
A simple ST program that turns on Y0 when X0 is pressed.
TON Timer Example (ST)
TON(T_1, X0, T#5s);
IF T_1.Q THEN
Y0 := TRUE;
END_IF;
Using the Mitsubishi TON (On-Delay) timer in Structured Text.
CTU Counter Example (ST)
CTU(C_1, X1, 10);
IF C_1.CV >= 10 THEN
Y0 := TRUE;
END_IF;
A simple up-counter that activates Y0 after 10 pulses.
Analog Input Scaling (0-4000 to 0-100)
Scaled := (D0 * 100) / 4000;
Scaling Mitsubishi raw analog input range to engineering units.
Motor Start/Stop Latch (ST)
IF X0 THEN
M0 := TRUE;
END_IF;
IF X1 THEN
M0 := FALSE;
END_IF;
Y0 := M0;
Classic seal-in motor circuit using X0 and X1.
Rising Edge Detection (ST)
Prev := Curr;
Curr := X0;
R_TRIG := Curr AND NOT Prev;
Basic rising edge detection using historical bool.
For Loop Array Sum (ST)
Sum := 0;
FOR i := 0 TO 9 DO
Sum := Sum + D[i];
END_FOR;
Summing 10 data registers D0-D9.
Simple PID Call (ST)
PID(PV := D100,
SP := D200,
OUT => D300,
EN := TRUE);
Calling a PID block in Mitsubishi ST.
PWM Output Example (ST)
IF Duty > 100 THEN
Duty := 100;
END_IF;
PWM_CH1.Duty := Duty;
Simple PWM control using a duty cycle tag.
Frequently Asked Questions about Mitsubishi-gx-works
What is Mitsubishi-gx-works?
Mitsubishi GX Works is an integrated software suite for programming, configuring, and monitoring Mitsubishi PLCs (Programmable Logic Controllers). It combines PLC programming, simulation, debugging, and device management in a single environment.
What are the primary use cases for Mitsubishi-gx-works?
Programming Mitsubishi PLCs using ladder logic or structured text. Configuring PLC hardware modules and I/O devices. Simulating PLC logic for testing and validation. Monitoring and debugging PLC operations. Maintaining industrial automation systems efficiently
What are the strengths of Mitsubishi-gx-works?
Unified IDE for Mitsubishi PLC programming. Robust debugging and simulation tools. Supports a wide range of PLC models. Facilitates structured and maintainable project workflows. Reliable integration with Mitsubishi industrial hardware
What are the limitations of Mitsubishi-gx-works?
Limited to Mitsubishi PLCs only. Complex for beginners without automation experience. Simulation may not perfectly mimic real-world PLC behavior. Less flexible for non-Mitsubishi automation systems. Requires licensed software for full features
How can I practice Mitsubishi-gx-works typing speed?
CodeSpeedTest offers 10+ real Mitsubishi-gx-works code examples for typing practice. You can measure your WPM, track accuracy, and improve your coding speed with guided exercises.