Everything

sta_cyc

ista_cyc

Outline
Start cyclic handler operation.
C format
 ER      sta_cyc (ID cycid);
 ER      ista_cyc (ID cycid);
Parameter(s)
I/O
Parameter
Description
I
 ID      cycid;
ID number of the cyclic handler operation to be started.

Explanation
This service call moves the cyclic handler specified by parameter cycid from the non-operational state (STP state) to operational state (STA state).
As a result, the target cyclic handler is handled as an activation target of the RI850V4.
The relative interval from when either of this service call is issued until the first activation request is issued varies depending on whether the TA_PHS attribute is specified for the target cyclic handler during configuration.
- If the TA_PHS attribute is specified
The target cyclic handler activation timing is set based on the activation phases (initial activation phase cycphs and activation cycle cyctim) defined during configuration.
If the target cyclic handler has already been started, however, no processing is performed even if this service call is issued, but it is not handled as an error.
- If the TA_PHS attribute is not specified
The target cyclic handler activation timing is set based on the activation phase (activation cycle cyctim) when this service call is issued.
This setting is performed regardless of the operating status of the target cyclic handler.
Return value
Macro
Value
Description
E_OK
0
Normal completion.
E_ID
-18
Invalid ID number.
- cycid < 0x0
- cycid > Maximum ID number
E_CTX
-25
Context error.
- This service call was issued in the CPU locked state.
E_NOEXS
-42
Non-existent object.
- Specified cyclic handler is not registered.