MC_BR_ReceiveParIDOnPLC

<< 点击显示目录 >>

主页  轴控开发使用手册 > ACP10/ARNC0帮助信息 > ACP10_MC运动库 > 分类的功能块 > 管理ACOPOS ParIDs >

MC_BR_ReceiveParIDOnPLC

This function block cyclically reads the value of a transmit channel on the PLC. In addition to the axis sending the data (master axis), either the transmit channel or the ParID must be specified.

Requirements for use

This function block can only be used on SG4 target system.

This function block cannot be used with axes on a CAN bus.

This function block should be called in the task class that is defined as the "Task class for NC Manager tasks" in the APC10 configuration. Calling it in a different task class can lead to data inconsistencies on the "CyclicValue" output.

PLCopen axis states in which the function block is permitted to be enabled

All PLCopen axis states, no effect on the PLCopen axis state

Function block

mc_br_receiveparidonplc

Parameter

I/O

Parameter

Data type

Description

IN

Axis

UDINT

Axis reference (transmitter)

IN

Enable

BOOL

Enables cyclic reading of the ParID

IN

ParID

UINT

ParID whose "Axis" value is already being transmitted and that should be cyclically read on the PLC

Note:

This definition is not necessary if a value "0" is specified for "SendChannel".

IN

SendChannel

USINT

0 ... Function block uses the ParID to search for the transmit channel

1 ... 3 ... ACP10PAR_MA1/2/3_CYCLIC_SEND

IN

Mode

USINT

Mode for converting to the PLCopen position (period and factor):

mcNO_POSITION ... 0

mcPOSITION ... 1

OUT

Valid

BOOL

Initialization completed, reading and outputting ParID

OUT

Busy

BOOL

The function block is active and must continue to be called.

OUT

Error

BOOL

Error during execution

OUT

ErrorID

UINT

Error numbers

OUT

CyclicValue

MC_CYCLIC_VALUE_REF

Cyclically read value or high-resolution position

Table: Parameter MC_BR_ReceiveParIDOnPLC

MC_CYCLIC_VALUE_REF data type

Parameter

Data type

Description

Integer

DINT

Whole number part

Real

REAL

Floating point value (or decimal part)

Topics in this section:

MC_BR_ReceiveParIDOnPLC

Additional information

Error numbers