Subsection: Connect
This subsection of the section IOMapping serves to connect module IOs with specified device IOs. This mapping is done without knowing the exact IO structure of the device. For direct connections, it is assumed that the module IO and the specified device IO are compatible
SEC DeviceGenerator //optional: yes, modifier: [UPDATE]
SEC IOMapping : <mapping identifier> //optional: yes, modifier: [UPDATE]
Parent := <target ID>; //optional: yes, type: ID
SEC Connect //optional: yes, modifier: [UPDATE]
ParameterID := <parameterID name>; //optional: no, type: literal/string
ElemPath := <elempath name>; //optional: no, type: literal/string
ConnectorID := <connector ID>; //optional: yes, type: literal/string
END_SEC
END_SEC
END_SECThe section
IOhas a target that corresponds to the target ID of the module IO that will be connected. The module that contains the specified device connection will be searched for this target ID. If no matching module IO can be found, an error message is issued during the scan.The optional definition
Parentgives the ID of the device that will be searched for the specified device IO (ParameterID). Until it is found, the device’s module and the history of the parent devices will be searched consecutively. If an appropriate device cannot be found, an error message is issued during the generation check.The section
Connectcontains all definitions necessary to connect a module IO to a device IO.ParameterIDdefines the IO channelParameterIDof the device that will be connected to. An attempt is made to find this parameter in the devices specified by the module itself. If no device is specified, an attempt is made to find the parameter in the next possible parent device. Then the parameter is connected to the module I/O. If none of the generated devices in the module hierarchy offers the specified parameter with thisParameterID, an error is issued.ElemPathdefines the sub-element of the device parameter (I/O channel) that will be connected to the module I/O. It is also possible to specify paths, etc.The parameter
ConnectorIDoptionally defines the connector of the device, whoseHostParameterSetcontains theParameterID. If noConnectorIDis specified, theParameterIDis searched for under theDeviceParameterSet.
This section offers the possibility to fill the fields with the help of the Input Assistant. To do this, place the cursor at the end of the line after
Connectand press Return. Afterwards, the Input Assistant opens and offers the available channels. After you choose a channel, the corresponding parameters are transferred to the module declaration. Please note that this function is only available when the end of the sub-section (END_SEC) has not been entered yet.
SEC IOMapping: xIn
SEC Connect
ParameterID := '33554434';
ElemPath := '';
ConnectorID := '1';
END_SEC
END_SEC