BackHomeContact Us

 

Code Example

ifbit…then

 

Syntax

ifbit value then instruction

 

Function

If the bit specified by value or variable is high then execute instruction. Refer to the hardware reference manual for the location of each pin. 

 

Range of Value

1 to 16

 

Controller Returns

None

 

Mode

Run

 

Example

A = 10

ifbit A then goto 100

 

Code Example

ifbit…then…else 

 

Syntax

ifbit value then instruction1 else instruction2

 

Function

If the bit specified by value or variable is high then execute instruction1, otherwise execute instruction2. Refer to the hardware reference manual for the location of each pin. 

 

Range of Value

1 to 16

 

Controller Returns

None

 

Mode

Run

 

Example

A = 10

ifbit A then goto 100 else goto 200

 

 


 

www.OESIncorp.com

Copyright ©  2002, 2003, 2004, 2005, 2006 Optimal Engineering Systems, Inc.