Detailed description
2.12 Block descriptions
Power Line Basic PLC Program (P3)
Function Manual, 08/2005 Edition, 6FC5397-0BP10-0BA0
2-187
The start parameter must be set to logic 0 by the user once the ASUB has been terminated
(Done) or if an error has occurred.
For the purpose of job processing, every FC ASUB required its own WORD parameter (Ref)
from the global user memory area. This parameter is for internal use only and must not be
changed by the user. Parameter Ref is initialized with the value 0 in the first OB 1 cycle and,
for this reason, every FC 9 must be called absolutely. Alternatively, the user can initialize
parameter "Ref" with a value of 0 during startup. This option makes conditional calls
possible. When a conditional call is activated by parameter "Start" = 1, it must remain active
until parameter "Done" has made the transition from 1 to 0.
Note
The function is initiated only with the LowHigh edge.
Declaration
FUNCTION FC 9: VOID //ASUB
VAR_INPUT
Start: BOOL ;
ChanNo: INT ;
IntNo: INT ;
END_VAR
VAR_OUTPUT
Active: BOOL ;
Done : BOOL ;
Error : BOOL ;
StartErr: BOOL ;
END_VAR
VAR_IN_OUT:
Ref: WORD ;
END_VAR
Description of formal parameters
The table below lists all formal parameters of the ASUB function.
Signal I/O Type Value range Remarks
Start I Bool
ChanNo I Int 1 - 10 No. of NC channel
IntNo I Int 1 - 8 Interrupt no.
Active Q Bool 1 = active
Done Q Bool 1 = ASUB terminated
Error Q Bool