Function BlockGetCtrlInfoPLCopen motion iconPipe Network motion icon

This function block returns a String containing the value of the control parameter requested.

Arguments

Input

Execute Description Rising edge of enable initiates read of parameter
  Data Type BOOL
  Range 0, 1
  Unit n/a
  Default
Parameter Number Description Parameter number to read
  Data Type INT
  Range [1,3]
  Unit n/a
  Default

1 = PDMM/PCMM serial number
2 = PDMM/PCMM model number
3 = PDMM/PCMM part number0

These parameters are also Internal Defines, as shown in the table below.

#define CTRLINFO_SERIAL_NUMBER 1
#define CTRLINFO_MODEL_NUMBER 2
#define CTRLINFO_PART_NUMBER 3

Output

Done Description Indication that read completed without error
  Data Type BOOL
Error Description Indication that read completed with error
  Data Type BOOL
ErrorID Description Error value to indicate error condition
  Data Type

INT
NO Error : 0
Invalid parameter : 1
Error reading data : 2
Not valid on non-PDMM : 3

These parameters are also Internal Defines, as shown in the table below.

#define CTRLINFO_ERROR_NO_ERROR 0
#define CTRLINFO_ERROR_INV_PARAMETER 1
#define CTRLINFO_ERROR_CANT_READ_DATA 2
#define CTRLINFO_ERROR_NOT_PDMM 3
Value Description String containing data that was read.
  Data Type STRING

Examples

Structured Text

Inst_GetCtrlInfo( ExecuteRead, 1);

if Inst_GetCtrlInfo.Done then
   serialNumber := Inst_GetCtrlInfo.Value;
end_if;

Ladder Diagram

Go back to the top of the page [Top]

 


Stay Connected with Kollmorgen

Copyright © 2015 Kollmorgen™