Galil DMC-3425 user manual Accessing extended I/O

Models: DMC-3425

1 210
Download 210 pages 53.34 Kb
Page 188
Image 188
Accessing extended I/O

For example, if blocks 2 and 3 are to be outputs, then n is 3 and the command, CO3, should be issued. Note: This calculation is identical to the formula: n = n2 + 2*n3 + 4*n4 + 8*n5 +16* n6 +32* n7 +64* n8 +128* n9 where nx represents the block.

Saving the State of the Outputs in Non-Volatile Memory

The configuration of the extended I/O and the state of the outputs can be stored in the EEPROM with the BN command. If no value has been set, the default of CO 0 is used (all blocks are inputs).

Accessing extended I/O

When configured as an output, each I/O point may be defined with the SBn and CBn commands (where n=1 through 8 and 17 through 80). Outputs may also be defined with the conditional command, OBn (where n=1 through 8 and 17 through 80).

The command, OP, may also be used to set output bits, specified as blocks of data. The OP command accepts 5 parameters. The first parameter sets the values of the main output port of the controller (Outputs 1-8, block 0). The additional parameters set the value of the extended I/O as outlined:

OP m,a,b,c,d

where m is the decimal representation of the bits 1-8 (values from 0 to 255) and a,b,c,d represent the extended I/O in consecutive groups of 16 bits. (values from 0 to 65535). Arguments that are given for I/O points configured as inputs will be ignored. The following table describes the arguments used to set the state of outputs.

Argument

Blocks

Bits

Description

M

0

1-8

General Outputs

A

2,3

17-32

Extended I/O

B

4,5

33-48

Extended I/O

C

6,7

49-64

Extended I/O

D

8,9

65-80

Extended I/O

180 • Appendices

DMC-3425

Page 188
Image 188
Galil DMC-3425 user manual Accessing extended I/O