When the execution result is 0, #L_CalcZero turns on.
When the execution results in an error, the error code is stored in #L_CalcErrCode.
When checking the result using system variables, make sure the check takes place after the instruction has been executed. When checking the state after multiple instructions have been executed, system variables will store the result only of the last processed instruction.
Program Example
ASIN
The ASIN instruction is executed when the positive transition instruction turns ON. The ASIN instruction calculates the arc sine of Data_A and stores the result in D1.
When using a normally open instruction, the ASIN instruction is always executed as long as the normally open instruction bit is ON.
ASINP
ASINP and ASIN instructions differ in when they run. In ASINP instructions, even when using a normally open instruction, only the positive transition is detected and the ASINP instruction is executed. Therefore, the ASINP instruction is executed only for one scan, even when the normally open instruction bit remains ON.