![IFM Electronic AC402S Скачать руководство пользователя страница 58](http://html.mh-extra.com/html/ifm-electronic/ac402s/ac402s_programming-manual_621136058.webp)
SmartPLC SafeLine AC4S with fieldbus interfaces
58
xExecute = TRUE:
xBusy = TRUE:
Rising edge (FALSE
TRUE) starts execution of the FB.
FB execution has been started, but has not yet been completed.
xReady = TRUE:
xBusy = FALSE:
xError = FALSE:
FB execution completed; there are valid values on the data outputs.
FB is no longer active.
FB execution without faults.
xExecute = FALSE:
All signal outputs are set to FALSE and all internal states are reset.
→
xReady = TRUE:
xBusy = FALSE:
xError = TRUE:
FB execution is terminated.
FB is no longer active.
Errors occurred during FB execution; wDiagnostic provides error code.
→
→
xExecute = FALSE:
FB execution interrupted prior to completion; All signal outputs are set to FALSE and all
internal states are reset.
>
FB with cyclic execution
42401
Function blocks which, when activated, cyclically perform their function until they are deactivated have
the following control inputs and outputs:
Designation
Type
Data type Description
Possible values
xEnable
Input
BOOL
Control FB execution
FALSE
Stop FB execution
TRUE
Start FB execution
xActive
Output
BOOL
Indication of whether execution of
the FB has been completed
FALSE
FB execution not yet completed
TRUE
FB execution completed
xError
Output
BOOL
Indication of whether faults have
occurred during execution of the
FB
FALSE
FB executed correctly
TRUE
Error occurred during execution of
the FB
wCycleCount
Output
WORD
Counters for the FB cycles
Integer value (hexadecimal representation)
wDiagnostic
Output
WORD
Error code
FB specific
>
7.4.2
Configure system
42492
To configure the system of the device, use the following function blocks:
Name
Description
Reference
QuickSetupASi_Master
Execute quick setup routine on an AS-i master
→
QuickSetupASi_Master
(
→ S.
Set_TimeDate
Set system time (date, time) of the system
→
Set_TimeDate
(
→ S.
Get_FieldbusInfo
Read fieldbus type, the status of the field bus connection
and the parameters of the fieldbus interface
→
Get_FieldbusInfo
(
→ S.
>