PMAC-Pack
34
Getting
Started
Figure 2-9. Connection of Input in Sourcing Configuration
Setting-up PMAC to Read the I/O
Machine inputs and outputs are typically accessed in software through the use of M-variables. In the
suggested set of M-variable definitions (see Chapter 9 of PMAC Software manual), variables M1 through
M8 are used to access outputs 1 through 8, respectively, and M11 through M18 to access inputs 1 through
8, respectively. The JOPT ports map into PMAC's memory space at Y address $FFC2. Setup M-Variables
to point at the specific I/O points (bits) of Y:FFC2 as shown in Table 2-3.
Testing the I/O
Testing an Output
Using the terminal window of the PMAC Exec, type
M01=0 <CR>
. Now type
M01=1 <CR>
. You
should see the LED or corresponding device interfaced to Machine Output #1 (pin 11) change state. Type
M01=0 <CR>
again. The device should return to the original state.
Testing an Input
To query the status of Machine Input #1, type M11 <CR> in the terminal window of the PMAC Exec.
PMAC will respond with a 1 or 0, depending on the state of the input. Toggle the input state and again
query the input value. You should see the corresponding change of state in software.
Содержание PMAC Pack
Страница 10: ...PMAC Pack Table of Contents vii ...
Страница 11: ......
Страница 16: ...PMAC Pack Overview 5 Figure 1 1 PMAC Pack Dimension ...
Страница 27: ...PMAC Pack 16 Overview ...
Страница 47: ...PMAC Pack 36 Getting Started ...
Страница 51: ...PMAC Pack 40 Complying with European Community EMC Requirements ...
Страница 53: ...PMAC Pack 42 PMACPack Custom Configuration Figure 4 1 PMAC Pack Disassembly ...
Страница 70: ...PMAC Pack PMACPack Custom Configuration 59 Figure 4 4 PMAC Pack Assembly ...
Страница 91: ...PMAC Pack 80 Circuit Diagrams Figure 7 2 Basic PMAC Pack Wiring Diagram ...
Страница 92: ...PMAC Pack Circuit Diagrams Figure 7 3 PMAC Pack with Accessory 8D Option 2 Wiring Diagram ...
Страница 93: ...PMAC Pack 82 Circuit Diagrams Figure 7 4 PMAC Pack with Accessory 8D Option 4A Wiring Diagram ...
Страница 94: ...PMAC Pack Circuit Diagrams Figure 7 5 PMAC Pack with Option 9L Wiring Diagram ...
Страница 95: ...PMAC Pack 84 Circuit Diagrams Figure 7 6 PMAC Pack with Accessory 28A Wiring Diagram ...
Страница 96: ...PMAC Pack Circuit Diagrams Figure 7 7 PMAC Pack with Accessory 39 Wiring Diagram ...
Страница 97: ...PMAC Pack 86 Circuit Diagrams ...
Страница 98: ...PMAC Pack Circuit Diagrams 87 ...
Страница 99: ...PMAC Pack 88 Circuit Diagrams ...
Страница 100: ...PMAC Pack Circuit Diagrams 89 ...
Страница 101: ...PMAC Pack 90 Circuit Diagrams ...
Страница 103: ...92 Acc 24E Acc 24EXP Expansion XP Pack Figure 8 1 Expansion Pack Installation ...
Страница 106: ...PMAC Pack Acc 24E Acc 24EXP Expansion XP Pack 95 Figure 8 3 PMAC Pack Assembly ...
Страница 109: ...98 Acc 24E Acc 24EXP Expansion XP Pack ...
Страница 117: ...106 PMACPack Options and Accessories ...