beautypg.com

Rockwell Automation 6008-SI IBM PC I/O SCNNR 6008-SI User Manual

Page 61

background image

Chapter 6

Discrete I/O

6-6

putbit

Use this routine to write a bit into the output image table.

Calling sequence:

putbit(

data, rack, group, bit

);

Arguments:

data:

an unsigned integer, whose low order bit is to be written to the

output image table.

rack:

an integer 0 to 7, the logical rack number.

group:

an integer 0 to 7, the module group number.

bit:

an integer 0 to 15 (decimal) or 0 to 17 (octal), the bit number.

Returned values:

none