Subsection: InstRefMapping
In the section InstRefMapping
with the subsection Demand
a module InstRef can be filled automatically with a FB instance created by a device.
SEC DeviceGenerator //optional: yes, modifier: [UPDATE] SEC InstRefMapping : <target ID> //optional: yes, modifier [UPDATE] Parent := <target ID>; //optional: yes, type: ID SEC Demand //optional: yes, modifier: [UPDATE] Desc := <...>; //optional: no, type: text Properties := <...>; //optional: no, type: IDList END_SEC END_SEC END_SEC
The top section
InstRefMapping
is supplemented by an additional optional sectionDemand
. The target of the top sectionInstRefMapping
defines the ID of a module InstRef, which will be filled with the FB instance. Only single InstRefs (not InstRef_Multi) are supported, because only single FB instances of single devices can be created.Desc
defines a localized description of the connection.Properties
defines a list of properties which describe, for example, the FB types required by the module InstRef. More that on property can be defined so that the single module InstRefs are classified as with module IOs.Syntax
[<Property1>, <Property2>,...]
(example:[SoftMotionVirtualDrive, Property2]
).Parent
defines the ID of the required device, which created FB instance shall be used to fill the module InstRefs. For demanding InstRefs wildcard devices as well as fix inserted devices are allowed.
SEC std.InstRefs SEC InstRef : axisRef Variable := axis_ref; Desc := TL.axisref_Desc ; END_SEC END_SEC SEC std.DeviceGenerator SEC Device : virtAxis SEC Identification Type := '1024'; ID := 'FFFF 0001'; Version := '*'; END_SEC END_SEC SEC InstRefMapping : axisRef SEC Demand Desc := TL.axisref_Desc; Properties := [VirtualAxis]; END_SEC END_SEC END_SEC