Setting the variable

For the digital, analog and some miscellaneous component, you need to set the variable. LOGO!Soft Comfort supports the following two ways of binding the variable to the component:

Binding variable from Tag Table

The component filters the variables in Tag table, and only the variables which match the component property are displayed in the Variable Name drop down list.

Set the variables under Properties -> Binding:

  1. Click the down arrow at the right of the Variable Name row.

    • If you select Default Tag, the variable you select is local and is not configurable.

    • If you select variables from tag table, the variable you select is global.

  2. Select block type, block number, block format, decimal places in the corresponding drop-down list.

    Block Type

    Block Number

    Writable

    I

    I1-I64

    Read Only

    Q

    Q1-Q60

    Read and Write

    M

    M1-M128

    Read and Write

    AI

    AI1-AI16

    Read Only

    AQ

    AQ1-AQ16

    Read and Write

    AM

    AM1-AM128

    Read and Write

    FAM

    FAM1-FAM32

    Read and Write

    V

    VB: 0-850

    Read and Write

    Bits: 0-7

    Read and Write

    VB

    0-850

    Read and Write

    VW

    0-849

    Read and Write

    VD

    0-847

    Read and Write

    Cursor Key

    C1-C4

    Read Only

    Function Key

    F1-F4

    Read Only

    Shift Register

    S1.1-S1.8,S2.1-S2.8,

    S3.1-S3.8,S4.1-S4.8,

    Read Only

    VX

    VX: 0-2047

    Read and Write

    Bits: 0-7

    Read and Write

    VXB

    0-2047

    Read and Write

    VXD

    0-2044

    Read and Write

    VXW

    0-2046

    Read and Write

    VR

    VR: 0-511

    Read and Write

    Bits: 0-7

    Read and Write

    VRB

    0-511

    Read and Write

    VRD

    0-508

    Read and Write

    VRW

    0-510

    Read and Write

  3. For the writable block types, you can enable the write function by checking box next to Writable.

Binding variable by dragging and dropping the function block

  1. Click command to split the editor pane into two windows.

  2. Open and drag the circuit diagram into one window and drag the web page into another window.

  3. Select the function block in the diagram, then hold down the [Alt] key and drag and drop the function block on the component you want to bind to.

  4. Check the component properties pane. The component binding values are synchronized from the function block.

You can tell from the mouse icon whether the function block variable and the component can be bound.

The binding is not allowed.

The binding is allowed.