![Galil DMC-4040 Скачать руководство пользователя страница 178](http://html1.mh-extra.com/html/galil/dmc-4040/dmc-4040_user-manual_3282915178.webp)
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;
4080
Individual bits can be queried using the @IN[n] function (where n=1 through 48).
MG @IN[17]
the controller will return the state of the least significant bit of block 2 (assuming block 2 is configured as an input).
Example Applications
Wire Cutter
An operator activates a start switch. This causes a motor to advance the wire a distance of 10”. When the motion
stops, the controller generates an output signal which activates the cutter. Allowing 100 ms for the cutting
completes the cycle.
Suppose that the motor drives the wire by a roller with a 2” diameter. Also assume that the encoder resolution is
1000 lines per revolution. Since the circumference of the roller equals 2
π
inches, and it corresponds to 4000
quadrature, one inch of travel equals:
4000/2
π
= 637 count/inch
This implies that a distance of 10 inches equals 6370 counts, and a slew speed of 5 inches per second, for example,
equals 3185 count/sec.
Chapter 7 Application Programming
•
169
DMC-40x0 User Manual
Содержание DMC-4040
Страница 17: ...DMC 4080 Layout Figure 2 2 Outline of the of the DMC 4080 DMC 40x0 User Manual Chapter 2 Getting Started 8...
Страница 19: ...DMC 4040 Dimensions Figure 2 5 Dimensions of DMC 4040 DMC 40x0 User Manual Chapter 2 Getting Started 10...
Страница 20: ...DMC 4080 Dimensions Figure 2 6 Dimensions of DMC 4080 Chapter 2 Getting Started 11 DMC 40x0 User Manual...
Страница 54: ...Chapter 3 Connecting Hardware 45 DMC 40x0 User Manual...
Страница 55: ...DMC 40x0 User Manual Chapter 3 Connecting Hardware 46...
Страница 56: ...Chapter 3 Connecting Hardware 47 DMC 40x0 User Manual...
Страница 73: ...Figure 4 1 GalilTools DMC 40x0 User Manual Chapter 4 Software Tools and Communication 64...
Страница 185: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 7 Application Programming 176...
Страница 205: ...THIS PAGE LEFT BLANK INTENTIONALLY DMC 40x0 User Manual Chapter 10 Theory of Operation 196...
Страница 220: ...Step 2 Remove ICM For DMC 4040 Proceed to Step 3 Configure Circuit Appendices 211 DMC 40x0 User Manual...
Страница 222: ...Step 2 Remove ICM s Appendices 213 DMC 40x0 User Manual...
Страница 232: ...DMC 4080 Steps 4 and 5 Step 4 Replace ICM s Appendices 223 DMC 40x0 User Manual...