Delta Tau GEO BRICK LV User Manual

Page of 440
 
Turbo PMAC User Manual 
198
 
Turbo PMAC General Purpose I/O Use 
In addition, the bi-directional buffer IC for each byte has a direction control line accessible as a software 
control bit.  These control lines and bits must match the ASIC direction bits.  The buffer direction control 
bits are at PMAC address Y:$070800, with bits 0 to 3 controlling the four bytes of the JIO port.  A bit 
value of 0 specifies input; 1 specifies output.  Suggested M-variable definitions are: 
M33->Y:$070800,0   
; Buffer direction control for I/O00 to I/O07 
M35->Y:$070800,1   
; Buffer direction control for I/O08 to I/O15 
M37->Y:$070800,2   
; Buffer direction control for I/O16 to I/O23 
M39->Y:$070800,3   
; Buffer direction control for I/O24 to I/O31 
In the default configuration automatically set at power-up/reset, I/O00 to I/O31 are set up as inputs (M32 
through M39 = 0).  This is done for maximum safety; no lines can be forced into an undesirable high or 
low state.  Any of these lines that are to be used as outputs must be changed to outputs by user programs 
Usually this is done in PLC 1 acting as a reset PLC, scanning through once on power-up/reset, then 
disabling itself. 
Inversion Control 
Each line on the JIO port is individually controllable as to whether it is an inverting I/O point (0=+5V; 
1=0V) or a non-inverting I/O point (0=0V; 1=+5V).  Registers X:$078404 and X:$078405 contain the 
inversion control bits: 
• 
X:$078404 bits 0 to 23 control I/O00 to I/O23, respectively 
• 
X:$078405 bits 0 to 7 control I/O24 to I/O31, respectively 
A value of 0 in the control bit sets the corresponding I/O point as non-inverting.  A value of 1 in the 
control bits sets the corresponding I/O point as inverting.  At power-up/reset, PMAC automatically sets 
all of the I/O points on the JIO port as non-inverting. 
Alternate Uses 
Each general-purpose I/O point on the JIO port has an alternate use as a supplemental fixed-use I/O point 
on a supplemental machine interface channel (1* or 2*).  The points are individually controllable as to 
general-purpose use or fixed use by control registers Y:$078404 and Y:$078405.  Refer to these registers 
in the memory-I/O map to see the alternate uses of each point.  At power-up/reset, Turbo PMAC 
automatically sets up all of the I/O points on the port for general-purpose use. 
Note:  
The byte-wide direction control of the buffer ICs must be set properly for the 
alternate uses of the I/O points, just as for the general-purpose I/O uses. 
Turbo PMAC2 Multiplexed I/O Port (JTHW) 
The JTHW multiplexer port has 16 discrete digital I/O lines for general-purpose use.  Most people will 
use them in the default configuration of eight inputs and eight outputs, and to support multiplexed I/O 
accessories from Delta Tau.  When used in this manner, no special setup of the I/O points is required.  
However, if it is desired to use these I/O points directly, the following discussion explains their use. 
The lines are configurable by byte for input or output (on the DSPGATE2 I/O IC, the lines are 
individually configurable for input or output, but the buffer ICs are only byte-configurable), and 
individually configurable for inverting or non-inverting format. 
Note:  
Variable I20 for a Turbo PMAC2 specifies the base address for the first MACRO 
IC in the system, the DSPGATE2 IC that controls the JTHW multiplexer port.  
This variable must be set correctly for the automatic multiplexer port functions to 
work correctly.  Usually, this base address is $078400, and the following 
discussions assume that the system is set up this way.