The Festo_Motion.lib library
22
Inputs and outputs
The following table contains a list of inputs and outputs that the function block xxx_PRM_MULTI has to
parameterise a motor controller.
Input/output
Type
Description
Execute
BOOL
Start transfer
0->1: A rising edge starts transfer of a parameter
SizeOfParam
USINT
Size of the parameter field (array) designated for transfer
AdrOfParam
POINTER_TO_BYTE Address of the parameter field (array) designated for
transfer
DATA_REF
VAR_IN_OUT
FPC data structure
Data structure provided by FB ..._PRM_INIT
Done
BOOL
Transfer status
= 0:
Transfer has not been initiated
= 1:
Transfer has been initiated
The result of the read operation is available in the
parameter field array in Value.
ParamNr
USINT
Number of the parameter currently being transferred
Err
BOOL
Error
= 0:
No error during parameter transfer
= 1:
Error during
parameter transfer
ErrStr
STRING(80)
Outputs an error message as a string
RETVAL
UINT
Current status of the FB instance
When using several instances of the FB, the current internal
status of the relevant FB is output.
Example of a parameter field (array)
MultiParam :
ARRAY
[1..5]
OF
FHPP_PRM_DESCRIPTION :=
(PNU:=404, SUBINDEX:=2, ACCESS:= 1, LENGTH:= 4, VALUE:=100),
(PNU:=404, SUBINDEX:=3, ACCESS:= 1, LENGTH:= 4, VALUE:=200),
(PNU:=404, SUBINDEX:=4, ACCESS:= 0, LENGTH:= 4, VALUE:=300),
(PNU:=404, SUBINDEX:=5, ACCESS:= 1, LENGTH:= 4, VALUE:=400),
(PNU:=404, SUBINDEX:=6, ACCESS:= 0, LENGTH:= 4, VALUE:=500);
Composition of the structure FHPP_PRM_DESCRIPTION
TYPE
FHPP_PRM_DESCRIPTION :
STRUCT
PNU : UINT ;
(* parameter number of the specified parameter *)
SUBINDEX : USINT;
(* subindex of the specified parameter *)
ACCESS : USINT;
(* 0 = read parameter / 1 = write parameter *)
LENGTH : USINT;
(* parameter length in number of bytes *)
(* (always 4 for CMM... controllers, otherwise see
*)
(* FB xxx_PRM_Single input datatype WR) *)
VALUE : DINT ;
(* result read out or value written *)
(* with these blocks: *)
(* MTR_DCI_PRM_MULTI, SFC_DC_PRM_MULTI, *)
(* SFC_LAC_PRM_MULTI, SFC_LACI_PRM_MULTI *)
(* the position factor must be taken into
consideration. *)
END_STRUCT
ENT_TYPE
Summary of Contents for CECX-X-C1 Series
Page 1: ...Manual Controller Modular CECX CECX X C1 CECX X M1 761886 1112c en ...
Page 2: ...1112c en ...
Page 4: ......
Page 6: ...1112c en ...
Page 7: ...CECX modular control system CECX modular control system ...
Page 46: ...CECX modular control system CECX I 38 ...
Page 47: ...System manual CECX ...
Page 48: ...CECX II ...
Page 56: ...Content System Manual CECX VIII ...
Page 58: ...System manual CECX Product design CECX II 0 2 ...
Page 68: ...System manual CECX Safety notes CECX II 2 6 ...
Page 76: ...System manual CECX System overview CECX II 3 8 ...
Page 84: ...System manual CECX General assembly and installation instructions CECX II 4 8 ...
Page 118: ...System manual CECX Operating behavior CECX II 8 6 ...
Page 122: ...System manual CECX Disposal CECX II 10 2 ...
Page 124: ...System manual CECX Technical data CECX II 11 2 ...
Page 166: ......
Page 180: ......
Page 212: ......
Page 232: ......
Page 248: ......
Page 260: ......
Page 278: ......
Page 294: ......
Page 308: ......
Page 412: ......
Page 426: ......
Page 500: ...System manual CECX Bus link module CECX B CO CECX II 34 64 ...
Page 501: ...The library Ethernet lib The library Ethernet lib ...
Page 505: ...The library EventData lib The library EventData lib ...
Page 511: ...The library IncEnc lib The library IncEnc lib ...
Page 517: ...The Festo_EasyIP lib library ...
Page 532: ......
Page 535: ...The library PLCService lib The library PLCService lib ...
Page 542: ...The library PLCService lib CECX VII 6 ...
Page 543: ...The library SysLibComEx lib The library SysLibComEx lib ...
Page 547: ...The Festo_Motion lib library ...
Page 584: ......
Page 585: ...The Festo_PartDetector lib library ...
Page 601: ...FED VipWin interface ...
Page 630: ......