Delta Tau PMAC2A-PC/104 Using Flag I/O as General-Purpose I/O, Acc-1P with Jumper E6 on Position

Page 31

PMAC2A PC104 Hardware Reference Manual

Using Flag I/O as General-Purpose I/O

Either the user flags or other not assigned axes flag on the base board can be used as general-purpose I/O for up to 20 inputs and 4 outputs at 5-24Vdc levels. The indicated suggested M-variables definitions, which are defined in the PMAC2 Software reference, allows accessing each particular line according to the following table:

Flag

Type

 

Channel Number

 

#1

#2

#3

#4

 

 

HOME

5-24 VDC Input

M120

M220

M320

M420

PLIM

5-24 VDC Input

M121

M221

M321

M421

MLIM

5-24 VDC Input

M122

M222

M322

M422

USER

5-24 VDC Input

M115

M215

M315

M415

AENA

5-24 VDC Output

M114

M214

M314

M414

Note:

When using these lines as regular I/O points the appropriate setting of the Ix25 variable must be used to enable or disable the safety flags feature.

General-Purpose Digital Inputs and Outputs

If one Acc-1P is present on the PMAC2A PC/104 stack configuration then its jumpers E5 and E6 should be set at the default position 1-2. In this case, the lines on its J7 general-purpose I/O connector will be mapped into PMAC’s address space in register Y:$C080. Jumpers E5 and E6 should be configured on position 2-3 only when two Acc-1Ps are used. In this case, the I/O lines can be accessed at address Y:$C0C0.

If no Acc-1P is present on the PMAC2A PC/104 stack configuration, and only Acc-2P is used, then jumper E5 on the Acc-2P board should connect pins 1 and 2. In this case the lines on its JOPT general- purpose I/O connector will be mapped into PMAC's address space in register Y:$C080.

If both Acc-1P and Acc-2P are used, then jumper E5 on the Acc-2P board should connect pins 2 and 3 and its I/O lines can be accessed at address Y:$C0C0.

Typically, these I/O lines are accessed individually with M-variables. Following is a suggested set of M- variable definitions to use these data lines.

Acc-1P with Jumper E6 on Position 1-2

M0->Y:$C080,0

; Digital Output M00

 

M1->Y:$C080,1

; Digital Output M01

 

M2->Y:$C080,2

; Digital Output M02

 

M3->Y:$C080,3

; Digital Output M03

 

M4->Y:$C080,4

; Digital Output M04

 

M5->Y:$C080,5

; Digital Output M05

 

M6->Y:$C080,6

; Digital Output M06

 

M7->Y:$C080,7

; Digital Output M07

 

M8->Y:$C080,8

; Digital Input MI0

 

M9->Y:$C080,9

; Digital Input MI1

 

M10->Y:$C080,10

; Digital Input MI2

 

M11->Y:$C080,11

; Digital Input MI3

 

M12->Y:$C080,12

; Digital Input MI4

 

M13->Y:$C080,13

; Digital Input MI5

 

M14->Y:$C080,14

; Digital Input MI6

 

M15->Y:$C080,15

; Digital Input MI7

0 = input)

M32->X:$C080,0,8

; Direction Control (1=output,

M34->X:$C080,8,8

; Direction Control (1=output,

0 = input)

M40->X:$C084,0,24

; Inversion control (0 = 0V, 1 = 5V)

M42->Y:$C084,0,24

; J7 port data type control (1 = I/O)

Software Setup

25

Image 31
Contents PMAC2A-PC/104 Delta Tau Data Systems, Inc. Technical Support Copyright InformationTable of Contents Software Setup Base Board Connector Pinouts PMAC2A PC104 Hardware Reference Manual Table of Contents Introduction Board ConfigurationAcc-1P Option 2 Analog-to-Digital Converters Option 12 Analog-to-Digital ConvertersAcc-1P Axis Expansion Piggyback Board Acc-1P Option 1 I/O PortsAcc-2P Option 2 Dpram Circuitry Acc-2P Communications BoardAcc-2P Option 1A USB Interface Acc-2P Option 1B Ethernet InterfacePMAC2A PC104 Hardware Reference Manual Introduction Clock Configuration Jumpers Base Board Hardware SetupBoard Reset Jumpers Communication Jumpers CPU Jumper ConfigurationConfiguration Jumpers Resistor Packs ConfigurationDevice Resistor Pack Pack Size PMAC2A PC104 Hardware Reference Manual Reserved Configuration Jumpers ACC-1P Hardware SetupE0 Reserved for future use Handwheel Encoder Termination Resistors Jthw Connector DATx SELx ACC-2P Hardware SetupJopt Connector E10 MOx MIx Lines Differential or Single-Ended Handwheel Encoder Selection Machine Connections Power SuppliesDigital Power Supply DAC Outputs Power SupplyMotor Signals Connections Overtravel Limits and Home SwitchesExample DAC Output SignalsAmplifier Enable Signal AENAx/DIRn Pulse and Direction Stepper DriversAcc-1P General-Purpose Digital Inputs and Outputs J7 Port Amplifier Fault Signal FaultAcc-1P Thumbwheel Multiplexer Port J2 Port Acc-2P General-Purpose Digital Inputs and Outputs Jopt PortAcc-2P Thumbwheel Multiplexer Port Jthw Port Optional Analog Inputs Acc-1P or Acc-2P Handwheel Port JHW / PD PortCompare Equal Outputs PC DB-9 Acc-2P Ethernet RJ45 Connector J10 PortAcc-2P USB Connector J1 Port Serial Port JRS232 PortMachine Connections Example Using Analog ±10V Amplifier PMAC2A PC104 Hardware Reference Manual PMAC2A PC104 Hardware Reference Manual Machine Connections Pmac I-Variables Software SetupOperational Frequency and Baud Rate Setup CommunicationsI54 Baud Rate Filtered DAC Outputs ConfigurationI54 Baud Rate for Flag Type Channel Number Using Flag I/O as General-Purpose I/OGeneral-Purpose Digital Inputs and Outputs Acc-1P with Jumper E6 on PositionOpen PLC1 Clear Acc-2P with Jumper E5 in PositionAcc-1P with Jumper E6 in Position Thumbwheel Port Digital Inputs and OutputsBaseboard Analog Inputs Analog Inputs SetupAcc-1P Analog Inputs Base Board Hardware Reference Summary Board DimensionsFeature Location FeatureBoard Layout Connectors and Indicators Page ACC-1P Hardware Reference Summary TB1 JMACH1 J7 General-Purpose Digital Inputs and Outputs Jopt Port J2 Thumbwheel Multiplexer Port Jthw PortJ8 Handwheel / Pulse and Direction Port JHW / PD Port Page ACC-2P Hardware Reference Summary TB1 Jthw Jopt J8 Handwheel/Pulse and Direction Port JHW / PD Port J1 USB Communications PortJ10 Ethernet Communications Port Page Base Board E-POINT Jumper Descriptions E0 Forced Reset ControlE1 Servo and Phase Clock Direction Control E3 Normal/Re-Initializing Power-Up/ResetDescription Default E8 Phase Clock Lines Output EnableE9 Servo Clock Lines Output Enable E10 E12 Power-Up State JumpersE15A, B, C Flash Memory Bank Select E13 Power-Up/Reset Load SourceE14 Watchdog Disable Jumper E16 ADC Inputs EnableE18 E19 PC/104 Bus Address Point and Physical Location Description Default LayoutE3 E4 JHW, PD Function Select E1 E2 Machine Output Supply Voltage ConfigureACC-1P E-POINT Jumper Descriptions E0 Reserved for Future UseE6 I/O Gate Address Select E5 Servo Gate Address SelectE7 Machine Input Source/Sink Control E6 Communications Port Select E1 USB/Ethernet Micro-Controller Firmware Reload EnableACC-2P E-POINT Jumper Descriptions E5 I/O Gate Address SelectE7- E10 Ports Direction Control Point and Physical Location Description DefaultPin# Symbol Function Description Base Board Connector PinoutsTB1 Jpwr Power Supply J4 JRS232 Serial Port ConnectorJ3 JMACH1 Machine Port Connector J3 JMACH1 50-Pin Header J4 JMACH2 Machine Port Baseboard Connector ACC-1P Connector Pinouts Pin# Symbol J2 Jthw Multiplexer Port ConnectorJ3 JMACH1 Machine Port Connector Pin Header J3 JMACH1 50-Pin-Header FLG78V Connector 34-Pin HeaderJ7 Jopto I/O Port Connector J8 JHW Handwheel Encoder Connector Page Pin # Symbol Function ACC-2P Connector PinoutsJ1 USB Universal Serial Bus Port Optional Pin Connector J7 Jopt I/O Port Connector Pin # Function J10 Ethernet Port Optional