background image

PROGRAMING WITH THE PAMUX DRIVER

Pamux User’s Guide

3-27

SET ANALOG WATCHDOG TIMEOUT

20

P

URPOSE

:

Sets the analog watchdog.

C

OMMAND

 T

YPE

:

Analog

P

ARAMETERS

:

COMMAND

Contains the value 20.

ADDRESS

Contains the address of the Pamux brain board.

VALUE ARRAY

The first element of this array contains the value of the watchdog timeout
interval for the analog brain board watchdog.

R

EMARKS

:

The value in the first element of the VALUE array can be an integer from 0 to 65,535. This
represents a delay length in units of 10 milliseconds, resulting in a range from 10 milliseconds to
10.92 minutes. A value of 0 disables the watchdog feature.

Use the Write Analog Watchdog command to set the values to be assigned to the outputs should a
watchdog timeout occur.

E

XAMPLE

:

This example sets the analog watchdog delay for the board at address 12 to 8 minutes (480
seconds). This results from writing the value 48,000 to address 12. Note that integer values above
32,767 must be entered in hex when using BASIC.

100

COMMAND% = 20

‘ Set Analog Watchdog Timeout

110

ADDRESS% = 12

‘ Address of brain board

120

VALUE%(0) = &HBB80

‘ 48000 decimal = BB80 hex

130

GOSUB 1000

‘ Call the driver

.

.

1000

CALL Pamux(ERRCOD%,ADDRESS%,COMMAND%,POSITION%,VALUE%(0))

1010

IF ERRCOD% < 0 THEN GOTO 2000

1020

RETURN

Summary of Contents for PAMUX

Page 1: ...rive Temecula CA 92590 3614 Phone 800 321 OPTO 6786 or 909 695 3000 Fax 800 832 OPTO 6786 or 909 695 2712 Internet Web site http www opto22 com Product Support Services 800 TEK OPTO 835 6786 or 909 69...

Page 2: ...are subject to change without notice Opto22warrantsall ofitsproductstobefreefromdefectsinmaterialorworkmanshipfor24monthsfromthemanufacturing date code This warranty is limited to the original cost o...

Page 3: ...1 7 UCA4 Universal Communication Adapter 1 8 Chapter 2 System Setup 2 1 Overview 2 1 Designing a System 2 1 Setting Up a B4 Station 2 3 Installing the B4 on a Mounting Rack 2 3 Setting B4 Jumpers 2 5...

Page 4: ...erence 3 6 Using the Pamux Driver under Windows 3 30 Installation 3 30 Architecture 3 30 Pamux APIs 3 31 API Command Reference 3 32 AC28 Operations 3 32 Digital Bank Operations 3 33 Digital Point Oper...

Page 5: ...Common Subroutines 4 16 Appendix A Troubleshooting and Tips A 1 Overview A 1 Preliminary Procedures A 1 General Troubleshooting A 1 Notes on LEDs A 2 Useful Tips A 3 Appendix B Specifications B 1 Pamu...

Page 6: ...ew C 1 Algorithms C 2 AD4 ICTD C 2 AD5 AD5T TYPE J THERMOCOUPLE C 2 AD8 AD8T TYPE K THERMOCOUPLE C 3 AD10T2 00 OHM PLATINUM RTD C 3 AD17T type r or type s thermocouple C 4 AD18T type t thermocouple C...

Page 7: ...onsoftheB5BrainBoard 2 9 Figure2 11 InstallationoftheB5onaMountingRack 2 10 Figure2 12 MountingDimensionsoftheG4PB8HwithaB5Installed 2 11 Figure2 13 MountingDimensionsoftheG4PB16HwithaB5Installed 2 11...

Page 8: ...able 2 2 B4 Watchdog Jumpers 2 6 Table2 3 WatchdogTimeoutValues 2 7 Table 2 4 B4 Reset Jumper 2 7 Table2 5 B5AddressJumpers 2 17 Table 2 6 B5 Watchdog Jumpers 2 18 Table2 7 WatchdogTimeoutValues 2 18...

Page 9: ...CompatibleI OMountingRacks B 4 Table B 2 Pamux Compatible I O Modules B 5 Table B 3 Opto 22 Cables for Pamux B 7 TableB 4 Third PartyPamux CompatibleCables B 7 TableB 5 PamuxConnectors B 7 TableB 6 C...

Page 10: ...TABLE OF CONTENTS x Pamux User s Guide...

Page 11: ...indicated below AC28 Revision C or later For revision B or earlier request Opto 22 form 218 B4 Revision L or later For revision K or earlier request Opto 22 form 127 B5 Revision J or later For revisi...

Page 12: ...TIONS Bold typeface indicates text to be typed Unless otherwise noted such text may be entered in upper or lower case Example At the DOS prompt type cd windows Italic typeface indicates emphasis and i...

Page 13: ...ion for future innovation and provides strong support for today s customers Opto 22 has targeted four key markets Enterprise Systems Components and Verticals Opto 22 provides bi directional data excha...

Page 14: ...TABLE OF CONTENTS xiv Pamux User s Guide...

Page 15: ...er programming device Pamux supports up to 32 distributable stations containing up to 512 I O points Each station is composed of a Pamux brain board and an I O mounting rack the final station on the P...

Page 16: ...liseconds and 16 analog output points in about 15 milliseconds The Pamux product line is ideal for low noise applications such as Robotics Numerical control Conveyor line control Sequence of events fa...

Page 17: ...on C or later For revision B or earlier refer to Opto 22 form 218 The AC28 is a high speed adapter card designed to link the Pamux bus to IBM PC AT or compatible computers The AC28 is compatible with...

Page 18: ...n the B4 applies to revision L or later For revision K or earlier refer to Opto 22 form 127 The Pamux B4 is an addressable digital brain board that can control up to 32 input or output points in distr...

Page 19: ...B5 is designed for use with a variety of Opto 22 I O mounting racks including racks that accept single point digital I O SNAP digital I O quad pak digital I O as well as racks with integrated digital...

Page 20: ...PB8AH eight points and PB16AH 16 points using Opto 22 Classic analog modules The B6 features a 50 pin female connector to attach to a mounting rack and two 50 pin male connectors to attach to the Pamu...

Page 21: ...boards At a B4 station a terminator board plugs into the I O mounting rack such that the component side of the terminator board faces away from the modules Figure 1 7 TERM1 Terminator Board TERM2 TER...

Page 22: ...with a parallel I O interface The UCA4 features terminators bus drivers a 50 pin header connector used to interface with the Pamux bus and two 50 pin male connectors used to link with a TTL device Be...

Page 23: ...points of digital I O and the B6 controls up to 16 points of analog I O In addition to a brain board and mounting rack the last station on a Pamux bus must also include a terminator board TERM1 or TE...

Page 24: ...SYSTEM SETUP 2 2 Pamux User s Guide Figure 2 1 Pamux Clustered System Figure 2 2 Pamux Distributed System Figure 2 3 Pamux Distributed Clustered System...

Page 25: ...e board These levers operate with the card guides on the mounting rack to hold the brain board in place or to help release it from the rack Figure 2 4 is a detailed illustration of the B4 along with i...

Page 26: ...SYSTEM SETUP 2 4 Pamux User s Guide Figure 2 5 Installation of the B4 on a Mounting Rack Figures 2 6 and 2 7 show the mounting dimensions of these racks Figure 2 6 Mounting Dimensions of the G4PB32H...

Page 27: ...base address of the B4 Since the brain board controls 32 points of I O while the Pamux data bus is only eight bits wide the B4 must be accessed as four consecutive banks of eight I O channels each Eac...

Page 28: ...chdog A watchdog timer shuts down a process when the host computer goes off line The watchdog timer on the B4 depends on a periodic read or write strobe from the host processor The individual B4 need...

Page 29: ...of channel 0 If jumper 8 is not installed the reset line will not affect the watchdog timer function Hence if channel 0 activates due to a watchdog condition an active reset line will have no effect o...

Page 30: ...board Figure 2 9 Terminator Board Installed on a B4 Compatible Mounting Rack B4 LED INDICATORS The B4 brain board includes the following LEDs Select Address This LED is on whenever the brain board is...

Page 31: ...one end of a Pamux system and describes the LED indicators INSTALLING THE B5 ON A MOUNTING RACK The B5 brain board measures 4 6 by 4 5 inches It includes a 50 pin female connector to attach to a digi...

Page 32: ...d digital I O PB8H 8 channels of single point standard digital I O PB16H 16 channels of single point standard digital I O PB16HC 16 channels of single point standard digital I O PB16HQ 4 channels of q...

Page 33: ...igures 2 12 through 2 21 show the mounting dimensions of these racks with the B5 brain board installed Figure 2 12 Mounting Dimensions of the G4PB8H with a B5 Installed Figure 2 13 Mounting Dimensions...

Page 34: ...SYSTEM SETUP 2 12 Pamux User s Guide Figure 2 14 Mounting Dimensions of the G4PB16HC with a B5 Installed Figure 2 15 Mounting Dimensions of the G4PB16J K L with a B5 Installed...

Page 35: ...SYSTEM SETUP PamuxUser sGuide 2 13 Figure 2 16 Mounting Dimensions of the PB4H with a B5 Installed Figure 2 17 Mounting Dimensions of the PB8H with a B5 Installed...

Page 36: ...SYSTEM SETUP 2 14 Pamux User s Guide Figure 2 18 Mounting Dimensions of the PB16H with a B5 Installed Figure 2 19 Mounting Dimensions of the PB16HC with a B5 Installed...

Page 37: ...with a B5 Installed Figure 2 22 shows the vertical dimensions of the B5 mounted on any rack except the PB16HQ Figure 2 22 Vertical Dimensions of the B5 Mounted on Racks other than the PB16HQ Figure 2...

Page 38: ...east significant bit of the Pamux address bus is used to select which bank is accessed 0 low bank 1 high bank The other 5 bits of the Pamux bus address determine which Pamux station is active Refer to...

Page 39: ...Out In 12 Out Out In In Out 14 Out Out In In In 16 Out In Out Out Out 18 Out In Out Out In 20 Out In Out In Out 22 Out In Out In In 24 Out In In Out Out 26 Out In In Out In 28 Out In In In Out 30 Out...

Page 40: ...ed for turning off the relays on all Pamux stations on the bus Note that the reset is not intended to be used to shut off outputs upon a system communication error Two jumpers control how the reset li...

Page 41: ...you are using an Opto 22 Pamux adapter card the host computer is automatically terminated since termination resistors are built into the card To terminate a B5 station plug a Pamux bus terminator boar...

Page 42: ...measures 6 40 by 4 75 inches It includes a 50 pin female connector to attach to an analog I O mounting rack At the top of the brain board are two 50 pin male header connectors used to link the brain...

Page 43: ...amux B6 brain board via a 50 pin header connection The mounting rack includes a fuse for the 5 volt line Figures 2 26 through 2 28 show the mounting dimensions of these racks with the B6 brain board i...

Page 44: ...r 6 is disabled jumper 7 sets the reset line polarity and jumper 8 sets the watchdog functionality Jumpers 1 5 Address These jumpers configure the base address of the B6 The brain board can control 16...

Page 45: ...Out In 12 Out Out In In Out 14 Out Out In In In 16 Out In Out Out Out 18 Out In Out Out In 20 Out In Out In Out 22 Out In Out In In 24 Out In In Out Out 26 Out In In Out In 28 Out In In In Out 30 Out...

Page 46: ...r which polarity you select as long as you are consistent throughout your Pamux system Table 2 10 B6 Reset Jumper R Re es se et t L Le ev ve ell J Ju um mp pe er r 7 7 Active High In Active Low Out Ju...

Page 47: ...away from the brain board components and its red wire connects to the 5V terminal on the rack Figure 2 30 illustrates the proper installation of the terminator board Figure 2 30 Terminator Board Insta...

Page 48: ...ents for analog modules Refer to this appendix for these requirements and for a list of vendors that provide compatible power supplies NOTE Always check all power supply polarities before powering up...

Page 49: ...use addresses 2E0 and 3E0 AC28 ACKNOWLEDGMENT DATA Pamux now includes a provision for identifying the last board communicated with via acknowledge lines The acknowledgment data is read at the reset po...

Page 50: ...has two terminals corresponding to each installed digital module Terminals 1 and 2 correspond to a module in channel 0 terminals 3 and 4 correspond to a module in channel 1 and so on For polarized mo...

Page 51: ...dulle es s A AC C I Inp npu ut t M Modu odulle es s G4IAC5 G4IAC5 G4IAC5A G4IAC5A G4IAC5MA G4IAC5MA G4IDC5 G4IDC5 G4IDC5B G4IDC5G G4IDC5D G4IDC5MA G4IDC5G IAC5 G4IDC5K IAC5A G4IDC5MA IDC5 IDC5 IDC5G I...

Page 52: ...of the power does not matter except for the G4ODC5 G4ODC5A G4ODC5MA ODC5 ODC5A SNAPODC5SRC and SNAPODC5SNK For DC output modules used with inductive loads add a commutating diode typically a 1N4005 to...

Page 53: ...hannel 2 Terminal 4 and the lower C terminal correspond to a circuit in channel 3 For polarized modules the positive connection goes to the C terminal and the negative connection goes to the numbered...

Page 54: ...uad pak output modules listed in Table 2 18 the load may be wired to either line Note that the C terminal of DC output modules must be more positive when switching DC leads For DC output modules used...

Page 55: ...ectrical connection from the negative field terminal which is connected to the upper A terminal on the rack to the 15 VDC common Hence these modules do not offer channel to channel isolation If you re...

Page 56: ...e wiring takes advantage of the fact that all lower A terminals on the mounting rack are tied together These provide a convenient tie point for shared loop source return Connect one lower A terminal t...

Page 57: ...P PamuxUser sGuide 2 35 Figure 2 34 Wiring for Milliamp Current Input and Output Modules with Individual Power Supplies Figure 2 35 Wiring for Milliamp Current Input and Output Modules with Shared Pow...

Page 58: ...du ulle e AD16T Figure 2 36 Wiring for 0 5A Current Input and 28 140 VAC Input Modules Thermocouple Input Modules Use Figure 2 37 to wire the analog thermocouple input modules listed in Table 2 22 The...

Page 59: ...ICTD Temperature Input Modules ICTD Temperature Input Modules Use Figure 2 37 to wire the analog ICTD temperature input module listed in Table 2 23 to an Opto 22 ICTD probe The example shows wiring to...

Page 60: ...using an AD10T2 with a four wire RTD probe do not connect the fourth wire Connect three wires as shown for the three wire RTD example For a two wire RTD probe add a second wire of the same type and ga...

Page 61: ...al are connected directly to the analog common when the module is plugged into the analog rack Rate modules measure the frequency of an incoming signal and produce a count based on the number of cycle...

Page 62: ...ftware driver diskette includes DOS and Windows versions of the Pamux driver The DOS version is called PDRIVER OBJ or PDRIVER COM choose the file type you need The Windows version is the dynamically l...

Page 63: ...o the driver must be 16 bit integers Notice that all variable names in the command above end with a percent sign In BASIC the indicates that a variable is a 16 bit integer The five Pamux parameters ar...

Page 64: ...at the currently defined segment BLOAD PDRIVER COM 0 The 0 in the statement above tells BASIC to start loading at an offset of 0 from the currently defined segment The file containing the version of...

Page 65: ...different CALL ABSOLUTE ERRCOD ADDRESS COMMAND POSITION VALUE 0 0 Note that the VALUE array is passed by including the first element of the array in the CALL statement The variables included in the CA...

Page 66: ...Pamux system a Bank is related to an Address and a Bank Number Every Pamux system is composed of 64 Banks 8 channels each A 16 channel Pamux brain board B5 or B6 has two banks Bank 0 refers to channel...

Page 67: ...tal Point 21 Write Analog Watchdog Bank 10 Write Digital Bank 22 Write Analog Watchdog Point 11 Write Digital Bank Expanded The format of each command description in this section is as follows COMMAND...

Page 68: ...rks To properly initialize the driver with the correct address of the AC28 card send this command before any other command The driver assumes a default AC28 base address of 100 hex If a value greater...

Page 69: ...ze the driver with the correct reset address of the AC28 card send this command before sending a reset command The driver assumes a default AC28 reset address of 0E0 hex If a value greater than 12 is...

Page 70: ...sending a Reset command For proper operation of the Reset command set the reset level to match the jumper setting of each Pamux brain board All Pamux brain boards connected to the same AC28 must be c...

Page 71: ...REMARKS For proper operation of this command the Set Reset Address and Set Reset Level commands must already have been sent to set the proper AC28 reset address and level EXAMPLE This example resets...

Page 72: ...be configured as outputs before they can be activated The driver will ignore any write commands to positions configured as inputs and no errors will be returned EXAMPLE This example configures bank 1...

Page 73: ...EMARKS All output module positions must first be configured as outputs before they can be activated The driver will ignore any write commands to positions configured as inputs and no errors will be re...

Page 74: ...figured as outputs before they can be activated The driver will ignore any write commands to positions configured as inputs and no errors will be returned The POSITION value is a point offset starting...

Page 75: ...5 This bitmask specifies the status of the bank Each bit corresponds to one module position If a bit is set to 1 the corresponding module position is active on If a bit is set to 0 the corresponding m...

Page 76: ...element 7 corresponds to the last If an element is set to 1 the corresponding module position is active on If an element is set to 0 the corresponding module position is inactive off EXAMPLE This exam...

Page 77: ...the POSITION parameter can range from 0 to 511 if the ADDRESS parameter is 0 An error will be returned if the values in these parameters exceed the limits EXAMPLE This example reads the state of the m...

Page 78: ...bit is set to 1 the corresponding module position will be activated turned on If a bit is set to 0 its corresponding module position will be deactivated turned off REMARKS Only I O points configured a...

Page 79: ...t to 0 the corresponding module position will be deactivated turned off REMARKS Only I O points configured as outputs will be affected EXAMPLE This example activates modules on bank 0 at address 5 pos...

Page 80: ...ut otherwise this command will have no effect The POSITION value is a point offset starting from the value in the ADDRESS parameter The point number in the POSITION parameter can range from 0 to 511 i...

Page 81: ...t be configured as outputs before values can be written to them The driver will ignore any write commands to positions configured as inputs and no errors will be returned EXAMPLE This example configur...

Page 82: ...REMARKS All output module positions must first be configured as outputs before values can be written to them The driver will ignore any write commands to positions configured as inputs and no errors w...

Page 83: ...e values can be written to them The driver will ignore any write commands to positions configured as inputs and no errors will be returned The POSITION value is a point offset starting from the value...

Page 84: ...onding to a module position within the bank Element 0 corresponds to the lowest module position element 7 corresponds to the highest EXAMPLE This example reads the status of eight points at address 32...

Page 85: ...starting from the value in the ADDRESS parameter The point number in the POSITION parameter can range from 0 to 511 if the ADDRESS parameter is 0 An error will be returned if the values in these param...

Page 86: ...Only I O points configured as outputs will be affected EXAMPLE This example writes the value 3 048 to module positions 4 5 and 6 and writes the value 0 to all other module positions at address 6 of b...

Page 87: ...as inputs and no errors will be returned The POSITION value is a point offset starting from the value in the ADDRESS parameter The point number in the POSITION parameter can range from 0 to 511 if the...

Page 88: ...ds resulting in a range from 10 milliseconds to 10 92 minutes A value of 0 disables the watchdog feature Use the Write Analog Watchdog command to set the values to be assigned to the outputs should a...

Page 89: ...chdog timeout occurs the values in the watchdog registers are written to their corresponding output module positions This task is performed automatically by the analog Pamux brain board if a watchdog...

Page 90: ...in these parameters exceed the limits When a watchdog timeout occurs the values in the watchdog registers are written to their corresponding output module positions This task is performed automatical...

Page 91: ...his file tells the linker that the Pamux APIs are part of a DLL If this library file is used the Pamux APIs do not need to be included in the imports section of the application s DEF file Import libra...

Page 92: ...art with PamuxUtil Example PamuxUtilBitEqual Banks and Points Any I O point can be addressed multiple ways A 16 channel I O board has two banks Point 0 the first point is accessed using a bank number...

Page 93: ...evel FALSE int PamuxCardClose int hAc28 DESCRIPTION Opens access to an AC28 card phAc28 gets a handle pUserQty gets the number of users or applications using the card The user number will be 1 on the...

Page 94: ...Bank int OutputMask int PamuxDigBank16Config int hAc28 int Bank UINT OutputMask int PamuxDigBank32Config int hAc28 int Bank long OutputMask DESCRIPTION Configures a bank of digital I O points as eith...

Page 95: ...k int Data int PamuxDigBank16Write int hAc28 int Bank int Data int PamuxDigBank32Write int hAc28 int Bank long Data DESCRIPTION Writes outputs using the value in Data Inputs are not affected if writte...

Page 96: ...ue in bOutput will configure the point as an output PamuxDigPointRead PROTOTYPE int PamuxDigPointRead int hAc28 int Bank int Point BOOL far pData DESCRIPTION Reads the value of a point and puts the va...

Page 97: ...the bank number and the point number PamuxDigBankReadFast PROTOTYPE int PamuxDigBankReadFast int IoPort DESCRIPTION Reads one byte eight bits from the specified I O port Does nothing more than call th...

Page 98: ...utputs A 1 in the mask indicates an output PamuxAnaBank16Read PROTOTYPE int PamuxAnaBank16Read int hAc28 int Bank int far DataArray16 DESCRIPTION Reads a bank of 16 analog points and places the values...

Page 99: ...analog point as either an input or output A non zero value to bOutput will configure the point as an output PamuxAnaPointRead PROTOTYPE int PamuxAnaPointRead int hAc28 int Bank int Point int far pDat...

Page 100: ...0 will disable the watchdog Setting the time to 0 can also be used to reset the watchdog error flag if it has tripped This and any other analog function can be used to tickle the watchdog to prevent...

Page 101: ...start at zero for the least significant bit LSB The zero at the end of the parameter name BitNumber0 serves as a reminder of this fact for anyone looking through the function definitions in either the...

Page 102: ...o or r C Con ons st ta an nt t iin n P Pa am mu ux x B BA AS S D De esc scr riip pt tiion on 0 PamuxNoError No error 1 not used Not an error code used by the Pamux driver 2 PamuxErrorAc28Handle A bad...

Page 103: ...PROGRAMING WITH THE PAMUX DRIVER 3 42 Pamux User s Guide...

Page 104: ...he host Pamux bus interface without using an AC28 you will need a UCA4 adapter card and a 17 line parallel port The port is configured with eight data lines six address lines a read strobe line a writ...

Page 105: ...The address lines must be held stable for a minimum of 100 nanoseconds after the write strobe is brought low Figure 4 1 shows the minimum bus timing for a Pamux bus write Figure 4 1 Write Timing on t...

Page 106: ...and provide a set of functions see the Pamux DLL source code which is written in C C This source code is found on the Pamux driver disk in the WIN SOURCE directory and on the Opto 22 BBS VARIABLES USE...

Page 107: ...e inputs at chs 0 3 9 11 15 Analog input channel used in these examples CONST MyAnalogInputChannel 4 Analog output channel used in these examples CONST MyAnalogOutputChannel 1 Analog output mask used...

Page 108: ...ine to its normal state The subroutine MyKillTime is used to pause the routine see Common Subroutines at the end of this chapter for specifics DECLARE SUB MyKillTime OUT MyAc28ResetPort MyAc28ResetLev...

Page 109: ...1 Generate some dummy data OutputData a AND MyDigitalOutMask CALL GetUpperAndLowerBytes OutputData UpperByte LowerByte OUT MyAc28IoPort MyDigitalBoard 1 UpperByte OUT MyAc28IoPort MyDigitalBoard Lower...

Page 110: ...ISTERS To read or write analog Pamux data you must access each brain board s internal registers dual port RAM locations The following is a map of the Pamux analog internal registers All values are in...

Page 111: ...Watchdog Channel 8 MSB F Analog Channel 7 MSB 32 Watchdog Channel 9 LSB 10 Analog Channel 8 LSB 33 Watchdog Channel 9 MSB 11 Analog Channel 8 MSB 34 Watchdog Channel 10 LSB 12 Analog Channel 9 LSB 35...

Page 112: ...access to an analog brain board The GetAccess function returns True if access is gained False otherwise This example tries a fixed number of times before giving up but a better approach would be to t...

Page 113: ...ant byte Increment the contents of the control register then read the data register to get the most significant byte Remember I O instructions are done one byte at a time and an analog value is a 12 b...

Page 114: ...igure a channel as an output you must set the module position s bit to 1 in the configuration register The configuration register is found at location 7E and 7F hex For example if module positions 0 1...

Page 115: ...ster 1 OUT DataPort UpperByte ELSE PRINT No Access END IF CALL ReleaseAccess DataPort Done configuring analog outputs DO WHILE 1 Loop until ctrl break Generate dummy data in AnalogValue using QBasic s...

Page 116: ...specific module position On power up the watchdog feature is disabled watchdog timer register 0 To use the watchdog a value from 1 to 65 535 must be loaded into the watchdog timer register This value...

Page 117: ...egister includes three bits Bit 0 Power up reset flag Bit 1 Fresh data flag Bit 2 Watchdog timeout flag Bit 0 is set to 1 if the Pamux B6 brain board has been reset due to a power up condition or a re...

Page 118: ...ch is accessed by simply doing an INP at its address If the board actually responds its type can be read from the reset register At the end of the routine an example is provided of an unsuccessful bra...

Page 119: ...te THEN EXIT FOR Error a port is in use END IF NEXT IF HFF InpByte THEN Print something like Port H100 is in use PRINT Port H HEX i is in use BEEP ELSE Print something like Ports H100 thru H13F are OK...

Page 120: ...rBytes UpperByte LowerByte DIM Temp IF UpperByte AND H80 THEN Prevent overflow if negative Temp UpperByte AND H7F H100 OR H8000 ELSE Temp UpperByte H100 Shift left 8 bits END IF CombineUpperAndLowerBy...

Page 121: ...PROGRAMING WITHOUT THE PAMUX DRIVER 4 18 Pamux User s Guide...

Page 122: ...pply has a tolerance of 0 25 VDC 3 Ensure that the address reset level and watchdog jumpers are installed to meet your specifications Each Pamux unit must have a unique address All units must have the...

Page 123: ...pplies must be within 0 25 VDC NOTES ON LEDS 1 The address LED on the B4 B5 and B6 boards will blink on when the board decodes a match between the address lines on the Pamux bus see Bus Pin Definition...

Page 124: ...the brain board s processor much of a chance to update the RAM Remember while you have access the brain board s processor cannot read from or write to the RAM It is OK to access more than one channel...

Page 125: ...TROUBLESHOOTING AND TIPS A 4 A 4 A 4 A 4 A 4 Pamux User s Guide...

Page 126: ...on condensing Connectors 50 pin male header connector Range Up to 500 feet total length AC36 ADAPTER CARD Description Pamux bus adapter card for a TTL parallel port using the Intel multibus port confi...

Page 127: ...et total length Up to 16 B4 brain boards per Pamux bus LED indicators Address watchdog Configuration jumpers Address reset watchdog B5 BRAIN BOARD Description 16 point digital brain board Power requir...

Page 128: ...cess address power Configuration jumpers Address reset watchdog TERM1 TERMINATOR BOARD Description Pamux bus terminator board Power requirements 5 VDC 0 1 V 0 5 A Operating temperature 0 C to 70 C Rel...

Page 129: ...ingle point digital I O PB16H 16 channels of single point digital I O PB16HC 16 channels of single point digital I O PB16J K 16 channels of integrated single point digital inputs1 PB16L 16 channels of...

Page 130: ...ard Analog AD8 Analog Input Type K Thermocouple Standard Analog AD8T Analog Input Type K Thermocouple2 Standard Analog AD9T Analog Input 0 to 50 mV2 Standard Analog AD10T2 Analog Input 100 Ohm RTD2 St...

Page 131: ...0 to 5 VDC Standard Analog DA4T Analog Output 0 to 5 VDC2 Standard Analog DA5 Analog Output 0 to 10 VDC Standard Analog DA6 Analog Output 5 to 5 VDC Standard Analog DA7 Analog Output 10 to 10 VDC Sta...

Page 132: ...o 22 do not meet your needs several other cables are also available Table B 4 presents Pamux compatible cables offered by vendors 3M and Alpha Contact these suppliers directly for more information Tab...

Page 133: ...lists the current required for each type of analog I O module Although switching power supplies are typically acceptable Opto 22 recommends that linear power supplies be used to power Pamux systems L...

Page 134: ...AD6HS 0 to 5 VDC High Speed 16 11 AD6T 0 to 5 VDC 35 35 AD7 0 to 10 VDC 16 11 AD8 Type K Thermocouple 17 12 AD8T Type K Thermocouple 45 45 AD9T 0 to 50 mV 45 45 AD10T2 100 Ohm RTD 45 45 AD11 5 to 5 V...

Page 135: ...SPECIFICATIONS B 10 Pamux User s Guide...

Page 136: ...module is below zero scale equal to 0 when the module is at zero scale equal to 4095 when the module is at full scale greater than 4095 when the module is above full scale The data returned from a di...

Page 137: ...A A1 1 A A2 2 T Te em mp p R Ra ange nge C C 1 104 0 1923067 20 15 20 to 1 1 to 161 0 0 1863354 0 10 0 to 30 162 to 354 161 0 1813472 30 19 31 to 65 355 to 551 354 0 1776649 65 10 66 to 100 552 to 86...

Page 138: ...4096 to 4524 4095 0 2611331 924 0 925 to 1036 4525 to 4874 4524 0 2685714 1035 9 1037 to 1130 4875 to 5170 4874 0 2770270 1130 0 1131 to 1212 5171 to 5422 5170 0 2858277 1211 9 1213 to 1284 5422 5422...

Page 139: ...e ype R thermocouple ype R thermocouple V VA AL LU UE E C Coe oeff ffiic ciien ent ts s T Te em mp p R Ra ange nge C C 740 A0 0 50 to 237 A1 0 1625144 A2 2 045438 x 10 5 A3 2 540494 x 10 9 A4 1 17679...

Page 140: ...A1 0 0256613 A2 6 195487 x 10 7 A3 2 218164 x 10 11 A4 3 55009 x 10 16 AD19T TYPE E THERMOCOUPLE B VALUE 36988 85 4095 5236 65 TEMP A0 A1 B A2 B2 A3 B3 A4 B4 where A0 A1 A2 A3 and A4 depend on VALUE a...

Page 141: ...TEMPERATURE CONVERSIONS ROUTINES C 6 Pamux User s Guide...

Page 142: ...ity 8databits 1stopbit Baud rates up to 28 800 Z modem protocol for uploads and downloads optional but recommended When calling for technical support be prepared to provide the following information a...

Page 143: ...PRODUCT SUPPORT D 2 Pamux User s Guide...

Page 144: ...essure readings Opposite of digital analogpoint An input or output with an analog value representing for example a value of 0 to 5 volts or a temperature Pamux analog modules feature 12 bit resolution...

Page 145: ...and points are used together to access I O points on a board at a particular address base address The starting I O address for programmable registers used as the reference address for all other I O ad...

Page 146: ...se because they don t require resistance measuring circuity high precision voltage amplifiers or cold junction compensation I O Input output the transfer of data to or from a computer system involving...

Page 147: ...nd numerical control point A single input output data access location An I O point can accept either input data read from a field device or output data to be transmitted to a field device Most I O mod...

Page 148: ...e than the TERM1 This may prove useful when using a cable that differs from recommended specifications thermocouple A temperature sensor that includes a junction of two different metals Temperature ca...

Page 149: ...GLOSSARY E 6 Pamux User s Guide...

Page 150: ...inition of E 1 address jumpers B4 2 5 2 6 B5 2 16 2 17 B6 2 22 2 23 address LED A 2 B4 2 8 B5 2 19 B6 2 25 algorithms for temperature conversion C 1 to C 4 analog bank configuring 3 20 3 21 reading 3...

Page 151: ...on of E 2 brain boards See also B4 B5 B6 definition of E 2 revisions current xi bulletin board service D 1 bus definition of E 2 bus pin definition 4 1 bus timing 4 2 C C C C C cables 2 1 2 26 A 1 tab...

Page 152: ...mounting dimensions 2 12 G4PB32H 2 3 mounting dimensions 2 4 G4PB8H 2 10 mounting dimensions 2 11 glossary E 1 to E 5 H H H H H handle 3 30 3 31 3 32 definition of E 3 I I I I I I O modules definitio...

Page 153: ...1 system design 2 1 troubleshooting A 1 to A 3 PAMUX driver 3 1 to 3 7 A 2 APIs 3 31 to 3 41 architecture 3 30 description 3 1 to 3 7 DOS command reference 3 6 to 3 7 error codes 3 5 installation 3 2...

Page 154: ...D input modules 2 38 table of 2 38 temperature conversion routine for C 3 S S S S S semaphore register 4 10 Set Analog Watchdog Timeout command 3 27 Set Base Address command 3 7 Set Reset Address comm...

Page 155: ...13 to 4 17 registers 4 13 to 4 17 setting 3 27 timeout flag 4 14 watchdog jumpers B4 2 6 B5 2 16 B6 2 24 watchdog LED A 2 B4 2 8 B5 2 19 wiring analog I O modules 2 33 to 2 39 digital I O modules 2 28...

Reviews: