EasyManuals Logo

Galil Motion Control DMC-40 0 Series User Manual

Galil Motion Control DMC-40 0 Series
283 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #160 background imageLoading...
Page #160 background image
8-Bit I/O Block Block Binary Representation Decimal Value for Block
17-24
2
2
0
1
25-32 3 2
1
2
33-40 4 2
2
4
41-48 5 2
3
8
The simplest method for determining n:
Step 1. Determine which 8-bit I/O blocks to be configured as outputs.
Step 2. From the table, determine the decimal value for each I/O block to be set as an output.
Step 3. Add up all of the values determined in step 2. This is the value to be used for n.
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 + 5*n5 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 non-volatile flash memory
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 48). Outputs may also be defined with the conditional command, OBn (where n=1
through 8 and 17 through 48).
4080
For 5-8 axis controllers, each I/O point may be defined with the SBn and CBn commands (where
n=1 through 48).
The command, OP, may also be used to set output bits, specified as blocks of data. The OP command accepts 3
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
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 which are given for I/O points which are
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
For example, if block 8 is configured as an output, the following command may be issued:
OP 7,,7
This command will set bits 1,2,3 (block 0) and bits 33,34,35 (block 4) to 1. Bits 4 through 8 and bits 36 through 48
will be set to 0. All other bits are unaffected.
When accessing I/O blocks configured as inputs, use the TIn command. The argument 'n' refers to the block to be
read (n=0,2,3 or 4). The value returned will be a decimal representation of the corresponding bits.
Individual bits can be queried using the @IN[n] function (where n=1 through 8 or 17 through 48). If the following
command is issued;
Individual bits can be queried using the @IN[n] function (where n=1 through 48).
Chapter 7 Application Programming ▫ 155 DMC-40x0 User Manual

Table of Contents

Other manuals for Galil Motion Control DMC-40 0 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Galil Motion Control DMC-40 0 Series and is the answer not in the manual?

Galil Motion Control DMC-40 0 Series Specifications

General IconGeneral
BrandGalil Motion Control
ModelDMC-40 0 Series
CategoryController
LanguageEnglish

Related product manuals