Omron NJ/NX Machine Automation Controllers: Configuring EtherCAT Motion & Motion Control Function Blocks in Sysmac Studio
1. The Unified Controller Architecture of Omron NJ/NX
In high-speed robotic delta packaging and flying shears, separating PLC sequence logic from external motion controllers introduces bus latency bottlenecks. Omron Machine Automation Controllers (NJ101, NJ501, NX1P2, NX102) execute on a One Controller Engine: unifying sequence logic, multi-axis interpolation, machine vision, and safety on a single high-performance processor. Motion cycles synchronize deterministically across EtherCAT (100 Mbps Full Duplex) at scan intervals as low as 500 microseconds (0.5 ms).
2. Data Architecture: Process Data (PDO) vs Service Data (SDO)
| Data Channel | Transmission Mechanism | Determinism & Priority | Typical Payload Data |
|---|---|---|---|
| RxPDO / TxPDO (Process Data Objects) | Cyclic synchronous streaming (exchanged deterministically every single task period) | Highest Priority (Isochronous Real-time) | Target position setpoints, real-time actual positions, drive torque feedback, travel limit bits |
| SDO (Service Data Objects) | Acyclic request-response mailbox mechanism | Secondary Priority (Non-real-time) | Parameter tuning writes, electronic gear ratio adjustments, diagnostic trip log retrieval |
3. Axis Configuration Protocol in Sysmac Studio
- Scan Physical EtherCAT Ring: Connect Sysmac Studio to the controller. Navigate to Configurations and Setup -> EtherCAT, right-click and select `Compare and Merge with Actual Network Configuration` to auto-discover installed 1S servo drives.
- Instantiate Motion Axis: Under Motion Control Setup -> Axis Settings, select `Add -> Motion Control Axis` (e.g. `MC_Axis000`).
- Bind Axis to Physical Drive: Associate the logical axis object with the physical EtherCAT node ID of the target drive.
- Configure Mechanical Ratio (Unit Conversion): Define engineering units as `mm`, configure ballscrew lead (e.g. 10.000 mm), and map encoder feedback (Omron 1S incorporates a 23-bit absolute encoder = 8,388,608 counts/rev).
4. PLCopen Standard Motion Function Block Programming
// --- 1. Energizing Servo Loop via MC_Power ---
// Axis: MC_Axis000
// Enable: True (powers motor windings)
// Status: Asserts True when drive reaches closed-loop Servo Ready state
[ Start_PB ] ---------------- [ MC_Power ]
Axis := MC_Axis000
Enable := True
Status => Servo_Ready
// --- 2. Zero-Datum Calibration via MC_Home ---
// Execute: Initiates automated homing sequence toward optical datum mark
// Done: Asserts True once mechanical machine datum is locked
[ Home_PB ] --- [ Servo_Ready ] --- [ MC_Home ]
Axis := MC_Axis000
Execute := True
Done => Homing_Done
// --- 3. Absolute Trajectory Positioning via MC_MoveAbsolute ---
// Target: 150.000 mm at 200.000 mm/s velocity profile
[ Move_PB ] --- [ Homing_Done ] --- [ MC_MoveAbsolute ]
Axis := MC_Axis000
Execute := True
Position := 150.0
Velocity := 200.0
Done => Arrived_FlagEtherCAT Physical Cabling Requirements
EtherCAT telegrams are susceptible to inductive spikes radiated by adjacent PWM motor leads. Mandatory Requirement: Always install industrial-grade Shielded Twisted Pair (STP, Cat5e/Cat6 SF/UTP or S/FTP) cabling with continuous metal-hooded RJ45 terminations to guarantee 360-degree shield bonding. Unshielded UTP commercial cords are strictly prohibited.