OLT-fields in FBD

An OLT-field (OLT for "online test") is intended to display the current value of the attached element (or of a sub-element) on the →PLC and to be able to change this value, if the connection to the PLC has been established and an →instance context has been set for the FBD-object. The attachment is automatically created when the OLT-field is created.

An OLT-field for a FORCEMRK block can be used to change the value of an →assignment so that logi.CAD 3 uses a specified force value instead of the actual value for the assignment. It is possible to toggle back to the actual value for the assignment at any time.

For which elements is it possible to create an OLT-field?

The following principles are valid:

  • Within the FBD-editor for →programs or →function blocks, an OLT-field can be created for elements that have a value during the execution on the →PLC.

  • Within the FBD-editor for →functions, an OLT-field cannot be created at all.

If the creation of OLT-fields is possible within the FBD-editor, it is possible (images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg ) or not (images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/error.svg ) to create an OLT-field for the following elements:

Element

An OLT-field can be created.

a →value field containing a declared →variable

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

another value field (e.g. with a constant literal)

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

Restriction: At present, no values are displayed within such OLT-fields.

an input or output of a →function block instance

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

a function block instance itself

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

a FORCEMRK block
images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg An OLT-field for a FORCEMRK block differs from an OLT-field for the other elements (see examples under "OLT-fields for force marker"

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

an output of a →call of a →function

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

Restriction: These OLT-fields display a value in case of the logi.CAD 3 default scope.
If e.g. a system integrator has deactivated the d ebugging feature for FBD, the OLT-fields for function outputs do not display a value.

an input of a →call of a →function

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/error.svg

a function itself

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/error.svg

an SFC-element

In particular, for the following part of the SFC-element:

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

Restriction: At present, no values are displayed within the OLT-fields for SFC-elements.

→connector and →continuation

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/check.svg

Representation

images/s/b2ic8e/9012/1ca6q62/_/images/icons/emoticons/information.svg If the FBD-editor and its elements are displayed differently in your logi.CAD 3 version, the system integrator has changed the styles for the FBD-editor. In this case and for information about the changed representation, please contact your system integrator.

Normal OLT-fields

Normal OLT-fields are the OLT-fields that are not created for a FORCEMRK block.

Example for OLT-fields that are associated with value fields containing a variable:

No displayed value

With displayed value

images/download/attachments/414777728/OLTFieldsNoValues-version-1-modificationdate-1534168649528-api-v2.png

images/download/attachments/414777732/OLTFieldsWithValues-version-1-modificationdate-1534168676837-api-v2.png

The assignment of the OLT-field is represented by a direct line.

Example for OLT-fields that are displaying a sub-element of the variable:

No displayed value

With displayed value

images/download/attachments/429720092/OLTFields2NoValues-version-1-modificationdate-1562570580788-api-v2.png

images/download/attachments/429720100/OLTFields2WithValues-version-1-modificationdate-1562570522835-api-v2.png

The sub-element is being defined when editing the OLT-field.

OLT-fields for a force marker

OLT-fields for a force marker are created for a FORCEMRK block . The OLT-fields for a force marker differ from the normal OLT-fields.

Example for an OLT-field that is associated with a FORCEMRK block – in contrast to the OLT-fields that are associated to value fields:

No displayed value

With displayed value

images/download/attachments/447611746/OLTFieldsFMNoValues-version-2-modificationdate-1593759062320-api-v2.png

Here the value 5 is assigned to var2 . This value is the actual value that is assigned by var1 .

images/download/attachments/447611752/OLTFieldsFMWithValues2-version-2-modificationdate-1593759236047-api-v2.png

Here the specified force value 8 is assigned to var2 although var1 would still assign the value 5.

images/download/attachments/447611752/OLTFieldsFMWithValues-version-2-modificationdate-1593759235932-api-v2.png

Use the force switch within the OLT-field (the slider within the OLT-field) to toggle between the actual value and a force value. Details: See "Creating or editing OLT-fields in FBD".

An OLT-field for a force marker consists of 3 parts:

  • The force switch is a slider on the left side. The force switch indicates whether the actual value (displayed as images/download/thumbnails/447611816/ForceSwitch1-version-1-modificationdate-1593688766679-api-v2.png ) or the force value (displayed as images/download/thumbnails/447611821/ForceSwitch2-version-1-modificationdate-1593688796770-api-v2.png ) is written to the PLC. Click onto the force switch in order to toggle between the actual value and the force value. The value displayed in the lower part is automatically updated.

  • The upper part displays the force value (e.g. the value 8). The force value is a value that you can specify. Double-click the upper part and enter the force value in the dialog

  • The lower part displays the value that is written to the PLC. In the case of the force switch images/download/thumbnails/447611816/ForceSwitch1-version-1-modificationdate-1593688766679-api-v2.png , the actual value is displayed (referring to the example, 5 is displayed). In case of the force switch images/download/thumbnails/447611821/ForceSwitch2-version-1-modificationdate-1593688796770-api-v2.png , the force value is displayed (referring to the example, 8 is displayed).

Restrictions

The restrictions are valid for normal OLT-fields as well as for OLT-fields for a force marker.

Restriction for the representation

  • If the OLT-field displays a value for STRING variables with a defined length, the displayed characters depend on the following assignment. Example: If a STRING variable with 100 characters is assigned to a STRING variable with 20 characters, the OLT-field just displays the 20 assigned characters.

  • If the OLT-field displays a value for STRING variables with an undefined length, the OLT-field displays just up to 256 characters.