-
In the Devices view, open the top device. In the device editor, select the PLC Settings tab.
Under Additional Settings, there is the Enable symbolic access for I/Os option.
-
Select the check box.
The generated function block instance is displayed on the IEC Objects tab of the device.
For each I/O channel, a (usually extended) function block is now automatically created and instantiated. This provides you with direct access immediately. You can access the I/O channel by means of the variables of the function block.
Example: EtherCAT Slave
The new function block extends the existing function block. The EL1008 function block instance is listed in the device editor below the EtherCAT IEC Objects tab.
Function block: EL1008_FB
The DrvEthercatLib.ETCSlave_Diag function block is extended to EL1008_FB and gets the output variables Input_<n>.
Example: Device without a defined basic block
If no function block is defined in the device description which can be extended, then a new function block is generated. For example, the Generic_XN1AI function block instance is listed in the device editor below the IEC Objects tab.
Example: CANopen
The BK5120_FB function block, which extends the existing _3SCOS.CANRemoteDevice function block according to the device description, is generated. The BK5120 function block instance is listed in the device editor on the CANopen IEC Objects tab.