XScript Manual · Chapter 1
title: "Introducing XScript" chapter: 1 images:
- xscript-overview.png
Introducing XScript
XScript is the dedicated scripting language for automation equipment control, developed by ICT. It runs inside QMachineStudio to drive sequences and GUI behavior. The syntax resembles C# and C++, but it is trimmed down to just what equipment control needs.
캡처 대기
public/manual/gui/xscript-overview.pngKey traits
- Easy to learn — C-family syntax with no pointers or memory management
- Built for equipment — DIO, Cylinder, Motor, Vision objects are built in
- Runtime edits — scripts can be modified, compiled, and debugged while the machine is running
- Integrated environment — syntax highlighting, auto-completion, and error handling in the QMachineStudio editor
When to use XScript
- Sequence logic — state transitions and operation order
- Event handlers — reactions to IO changes or error conditions
- Hardware checks — verifying device state at startup
- GUI actions — button clicks and screen transitions
For lower-level work (native APIs, direct memory management) you build an external library and call it from XScript.
Next
The following chapters cover, in order:
- Language basics — variables, types, operators
- Control flow —
if,for,while - Object APIs — DIO, AIO, Cylinder, Motor and other equipment objects
- System object — XSystem runtime-state control