<< Prev        Next >>

ID : 191

DetectOn

Function

To enable Detect Function.

Syntax

DetectOn port number, stored data type, head variable number, 
maximum storing number, variable number storing the number of input[, edge designation]

Guaranteed entry

Port number
Designate an I/O signal port number entering as a trigger by integer type data.
Stored data type
Designate a data type for storing data.
Designated value Global variable type
257 Position Type
258 Joint Type
259 Homogeneous Translation Type
Head variable number
Designate a head Index number of global variable for storing by integer type data.
Maximum storing number
Designate the number of data storing in a global variable by integer type data.
Variable number storing the number of input
Designate an Index number of an integer type global variable, which stores the number of times of input signal worked as a trigger while the function is enabled, by integer type data.
Edge designation
Designate an edge detected by the input signal.
Designated value Detected edge
0 Rising only (when omitted)
1 Falling only
2 Both

Description

Detect function can be enabled.

It will be enabled until DetectOff is executed.

DetectOn will initialize buffer.

"-1" will be assigned when the number of input exceeds maximum storing number for assigning data to variable number storing the number of input.

Related Terms

Detect Function, DetectOff

Attention

-

Example

-

ID : 191

<< Prev        Next >>