PLCopen Motion Control 4.4.5.3 MC_AxTableReadOutNonCyclic_BkPlcMc (from V3.0) The function block determines the slave values assigned to a master value with the aid of a table. NOTE! This function block is a component of cam plates or similar non-linear couplings. It is generally not called direct by an application. VAR_INPUT pTable: POINTER TO LREAL:=0; fMasterValue: LREAL:=0.0; nFirstIdx: UDINT:=1; nLastIdx: UDINT:=1; bReInit: BOOL:=FALSE; END_VAR VAR_OUTPUT fSlaveValue: LREAL:=0.0; fSlaveGear: LREAL:=0.0; bUnderRange: BOOL; bOverRange: BOOL; END_VAR pTable : This parameter is used to transfer the address of an ARRAY[nFirstIdx..nLastIdx.1..2]. fMasterValue :
This parameter is used to transfer the master value, for which the corresponding slave values are to be determined. nFirstIdx : This parameter is used to transfer the lower index of the ARRAY, whose address is transferred as pTable . Attention : An incorrect specification at this point causes the PLC application to crash through triggering of serious runtime errors ( Page Fault Exception ). nLastIdx : This parameter is used to transfer the upper index of the ARRAY, whose address is transferred as pTable . bReInit : This input indicates to the function block that the search procedure should start at the top of the table. fSlaveValue :
This parameter is used to output the slave value belonging to fMasterValue . fSlaveGear : This parameter is used to output the local slope of the slave values at the point in the table specified by the master. bUnderRange : This output becomes TRUE, if the master value reaches the bottom of the table or falls below it. bOverRange : This output becomes TRUE, if the master value reaches the top of the table or exceeds it. PLC Library Hydraulics 164 Version: 1.4 Attention Crash of the PLC application An incorrect specification at this point causes the PLC application to crash through trig- gering of serious runtime errors (Page Fault Exception).
Attention Crash of the PLC application An incorrect specification at this point causes the PLC application to crash through trig- gering of serious runtime errors (Page Fault Exception).