MC_AxUtiWriteCoeDriveTerm_BkPlcMc (from V3.0)

MC_AxUtiWriteCoeDriveTerm_BkPlcMc (from V3.0) 1:

The function block writes the contents of a register of the EL terminal, which is used as drive interface for the axis.

MC_AxUtiWriteCoeDriveTerm_BkPlcMc (from V3.0) 2: Inputs

VAR_INPUT
    Execute:        BOOL;
    Pdata:          POINTER TO BYTE:=0;
    ByteCount:      BYTE:=0;
    Index:          WORD:=0;
    Subindex:       BYTE:=0;
END_VAR

Name

Type

Description

Execute

BOOL

The writing process is initiated by a rising edge at this input.

Pdata

POINTER

The address of the variable whose content is to be written to the terminal must be specified here.

ByteCount

BYTE

Here, the size of the variable is specified in bytes.

Index

WORD

Here, the addressing of parameter in the terminal is specified.

Subindex

BYTE

MC_AxUtiWriteCoeDriveTerm_BkPlcMc (from V3.0) 3: Inputs/outputs

VAR_INOUT
    Axis:           Axis_Ref_BkPlcMc;
END_VAR

Name

Type

Description

Axis

Axis_Ref_BkPlcMc

Here, the address of a variable of type Axis_Ref_BkPlcMc should be transferred.

MC_AxUtiWriteCoeDriveTerm_BkPlcMc (from V3.0) 4: Outputs

VAR_OUTPUT
    Busy:           BOOL;
    Done:           BOOL;
    CommandAborted: BOOL;
    Error:          BOOL;
    ErrorID:        UDINT;
END_VAR

Name

Type

Description

Busy

BOOL

Indicates that a command is being processed.

Done

BOOL

Indicates successful writing of the parameter.

CommandAborted

BOOL

Indicates abortion of the read operation.

Error

BOOL

The occurrence of an error is indicated here.

ErrorID

UDINT

An encoded indication of the cause of the error is provided here.

Behavior of the function block

On a rising edge at Execute the function block checks the transferred axis interface. A number of problems can be detected and reported during this process:

A falling edge at Execute clears all the pending output signals. If Execute is set to FALSE while the writing process is still active, the process that had started continues unaffected. The signals provided at the end of the operation (Done, CommandAborted, Error, ErrorID) are made available for one cycle.