Skip to content

Machine FG_04

github-actions[bot] edited this page Sep 15, 2026 · 1 revision

FG_04 in TwinCAT

This page is generated from the machine handoff and the TwinCAT solution. Published from _docs/context/fg-04.md — edit it there, not here. Changes made in the wiki are overwritten on the next sync.

The control side only. What FG_04 is - its scene hierarchy, its devices and everything a human authored about it - is in the main repo: FG_04.

Twin PLC path MAIN.FG_04
Control PLC path MAIN.Machine.FG_04
Module FG_04 EXTENDS FB_PackML_BaseModule
Served by Index04 (FG_Transport)
Devices 2
Behaviour fg-04-behaviour.md

Components

Symbol Device type Twin FB Control PLC path I/O Linked
B_NIO SignalBinary FB_SensorBinary MAIN.Machine.FG_04.B_NIO 1 1
Y_AxisZ Cylinder FB_Cylinder MAIN.Machine.FG_04.Y_AxisZ 4 4

The twin path is not the control path. Only the control PLC path works in an HMI binding or a TcLinkTo pragma, and the twin's spelling fails silently in both.

SIM_1

POU TwinCAT_1/PLC/SIM_1/FG_04/FG_04.TcPOU
In .plcproj yes
Mapping targets GVL_EtherCAT_1_SIM
Mapping lines 5

Only the Mapping action is ours. The {region generated code} block belongs to OC Assistant and is overwritten on the next twin regeneration.

PLC_1

POU TwinCAT_1/PLC/PLC_1/Modules/14 FG_04/FG_04.TcPOU
In .plcproj yes
PackML states Execute, Aborting, Clearing, Stopping, Resetting
Fault codes 1
HMI struct ST_HMI_FG_04

Fault codes are read from _FaultCode := in the ST. What each one means is behaviour and lives in the reference page named in the header.

Mapping

Process image member Dir Terminal Via
B_NIO.HardwareInput IN FG_04_EL1008_1 channel 3 Mapping_PLC.xml
Y_AxisZ.ExtendedSensor IN FG_04_EL1008_1 channel 1 Mapping_PLC.xml
Y_AxisZ.RetractedSensor IN FG_04_EL1008_1 channel 2 Mapping_PLC.xml
Y_AxisZ._ExtendOutput OUT FG_04_EL2008_1 channel 1 Mapping_PLC.xml
Y_AxisZ._RetractOutput OUT FG_04_EL2008_1 channel 2 Mapping_PLC.xml

5 members, 5 linked, 0 unlinked. A declared but unlinked signal compiles and is silently dead - see plc-io.md for the channel map and plc-io-exceptions.md for the ones that are unlinked on purpose.

Clone this wiki locally