Detailed Description
2.12 Block descriptions
PLC Basic Program Solution Line (P3 sl)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-131
Description of formal parameters
The table below lists all formal parameters of the GETGUD function.
Signal Type Type Value range Remarks
Req I Bool Job start with positive signal edge
Addr I Any [DBName].[VarName] GUD variable name in a variable of
data type STRING
Area I Byte Area address:
0: NCK variable
2: Channel variables
Unit I Byte NCK area: Unit:=1
Channel area: Channel no.
Index1 I Int Field index 1 of variable
Variable has the value 0 if no field
index is used.
Index2 I Int Field index 2 of variable
Variable has the value 0 if no field
index is used.
CnvtToken I Bool Activate generation of a variable
token
VarToken I Any [DBName].[VarName] Address to a 10byte token (see
example)
Error Q Bool Job negatively
acknowledged or
not executable
Done Q Bool Job successfully
executed.
State Q Word See error identifiers
RD I/O Any P#Mm.n BYTE x...
P#DBnr.dbxm.n BYTE x
Data to be written
Error identifiers
If it was not possible to execute a job, the failure is indicated by "logic 1" on status parameter
error. The error cause is coded at the block output State:
State Meaning Note
WORD H WORD L
0 1 Access error
0 2 Error in job Incorrect compilation of Var. in a job
0 3 Negative
acknowledgment, job not
executable
Internal error,
try: NC reset
0 4 Data areas or data
types do not tally
Check data to be
read in RD