Chapter 4. programming – IAI America S-SEL-E User Manual

Page 160

Advertising
background image

Page 155

Chapter 4. Programming

[Function]

Turns ON the post flag or the output port when the value in Operand 1 is greater than the value in Operand 2.

(Variable values do not change.) When the condition is not met (contents of Operand 1 are equal to or smaller
than Operand 2), the output section turns OFF.

[Example]

CPGT 1

5

600

When the content of variable 1 in Operand 1 is greater than the content of Operand 2 (in this case, when it
becomes greater than 5), output 600 turns ON. When the condition is not met, 600 turns OFF.

CPGT 1

*2

600

When the content of variable 1 in Operand 1 is greater than the content of the variable in Operand 2, output
600 turns ON. When the condition is not met, it turns OFF.

[Function]

Turns ON the post flag or the output port when the value in Operand 1 is equal to or greater than the value in

Operand 2. (Variable values do not change.) When the value in Operand 1 is smaller than

the value in

Operand 2, the output section turns OFF.

[Example]

CPGE 1

5

600

When the content of variable 1 in Operand 1 is equal to or greater than the content of Operand 2 (in this case,
equal to or greater than 5), output 600 turns ON. When smaller than 5, 600 turns OFF.

CPGE 1

*2

600

If the content of variable 1 in Operand 1 is equal to or greater than the content of the variable in Operand 2,
output 600 turns ON. When the condition is not met, 600 turns OFF.

CPGE (Compare if Equal or Greater)

E x p a n s io n

c o n d itio n

( A N D · O R )

In p u t

c o n d itio n

( I/O · F la g )

C o m m a n d

P o s t

( O u tp u t p o r t · F la g )

C o m m a n d

O p e r a n d 1

O p e r a n d 2

O p tio n a l

O p tio n a l

C P G T

V a r ia b le n o .

D a ta ·V a r ia b le n o .

R e q u ir e d

E x p a n s io n

c o n d itio n

( A N D · O R )

In p u t

c o n d itio n

( I/O · F la g )

C o m m a n d

P o s t

( O u tp u t p o r t · F la g )

C o m m a n d

O p e r a n d 1

O p e r a n d 2

O p tio n a l

O p tio n a l

C P G E

V a r ia b le n o .

D a ta ·V a r ia b le n o .

R e q u ir e d

CPGT (Compare if greater than)

Advertising
This manual is related to the following products: