S100 RS-232 Serial Device Interface User Manual Pyramid Technical Consultants, Inc. 1050 Waltham Street Suite 200, Lexington MA 02421 USA US: TEL: (781) 402 1700 ♦ FAX: (781) 402-1750 ♦ EMAIL: SUPPORT@PTCUSA.
PSI System Controls and Diagnostics 1 Contents Safety Information ......................................................................................................................................................5 Models...........................................................................................................................................................................7 Scope of Supply...................................................................................................
PSI System Controls and Diagnostics Data framing and Flow Control...............................................................................................................................24 Data framing...........................................................................................................................................................24 Flow control......................................................................................................................................
PSI System Controls and Diagnostics Returns procedure.....................................................................................................................................................38 Support .......................................................................................................................................................................39 Declaration of Conformity.......................................................................................................
PSI System Controls and Diagnostics 2 Safety Information This unit is designed for compliance with harmonized electrical safety standard EN610101:2000. It must be used in accordance with its specifications and operating instructions. Operators of the unit are expected to be qualified personnel who are aware of electrical safety issues. The customer’s Responsible Body, as defined in the standard, must ensure that operators are provided with the appropriate equipment and training.
PSI System Controls and Diagnostics Direct current Earth (ground) terminal Protective conductor terminal Frame or chassis terminal Equipotentiality Supply ON Supply OFF CAUTION – RISK OF ELECTRIC SHOCK CAUTION – RISK OF DANGER – REFER TO MANUAL S100 User Manual S100_UM_081031 Page 6 of 41
PSI System Controls and Diagnostics 3 Models S100 S100 User Manual RS-232 serial device interface S100_UM_081031 Page 7 of 41
PSI System Controls and Diagnostics 4 Scope of Supply S100 model as specified in your order. USB memory stick containing: User manual PSI Diagnostic software guide Software installation guide PSI diagnostic software files Optional items as specified in your order.
PSI System Controls and Diagnostics 5 Optional Items 5.1 Power supplies PSU24-45-1. +24 VDC 1.88 A PSU (100-250 VAC, 50-60 Hz, IEC C14 3-pin plug receptacle) with output lead terminated in 2.1mm threaded jack. PSU24-36-1. +24 VDC 1.5 A PSU (100-250 VAC, 50-60 Hz, IEC C8 2-pin plug receptacle) with output lead terminated in 2.1mm threaded jack. 5.2 Data cables Fiber-optic cable pair, 1 mm plastic, ST terminated, 5m. Fiber-optic cable pair, 200 um silica, ST terminated, 5m. 5.
PSI System Controls and Diagnostics 6 Intended Use and Key Features 6.1 Intended Use The S100 is intended for general control and monitoring applications, interfacing RS-232 devices to fiber optic loop system. Applications include control and monitoring of power supplies, vacuum gauge controllers, motion controllers, bench test equipment and so on.
PSI System Controls and Diagnostics 7 Specification RS-232 port Lines Three: transmit, receive, ground. RS-232 levels Connector type D sub female, 9 pin Driver output voltage +7.5 V (logic 0, space), -7.5V (logic 1, mark) typical for nominal 5 kohm load. Worst case load impedance 2500 pF, 3 kohm for 115200 bps operation. Driver short circuit protection Indefinite to ground or to +/-30V.
PSI System Controls and Diagnostics Operating environment 0 to 35 C (15 to 25 C recommended) < 80% humidity, non-condensing vibration < 0.2 g all axes, 1 to 1000Hz Shipping and storage environment -10 to 50C < 80% humidity, non-condensing vibration < 2 g all axes, 1 to 1000 Hz Dimensions (see figures 1 and 2). Address Mode RS-232 ADDRESS SELECTOR COMMS SELECTOR STATUS LEDs FIBER-OPTIC TX FIBER-OPTIC RX RCV XMIT Power Transmit Receive Status +24VDC POWER IN 24V + Figure 1.
PSI System Controls and Diagnostics 4x 3.66 mm MOUNTING HOLE 4.2 80.2 76.0 77.5 62.0 83.6 66.6 28.2 84.3 Figure 2. S100 case plan and side views. Dimensions mm.
PSI System Controls and Diagnostics 8 Installation 8.1 Mounting The S100 may be mounted in any orientation, or may be simply placed on a level surface. A fixed mounting to a secure frame is recommended in a permanent. Four M3 clear holes are provided in the base flange on a 62 mm by 76 mm rectangular pattern (see figure 2). The mounting position should allow sufficient access to connectors and cable bend radii. Leave 60mm clearance at either end for mating connectors and cable radii.
PSI System Controls and Diagnostics A#00 RS-232 device Other devices Other devices S100 Fiber-optic comms +24V in Figure 3. Schematic typical S100 installation for remote interfacing of an RS-232 device Use of the S100 allows standard RS-232 devices to work in a multi-drop, addressable environment, and to coexist with other devices connected to the fiber-optic loop or loops.
PSI System Controls and Diagnostics 9 Getting Started using the PSI Diagnostic Host Program Usually you will use a custom application to communicate with the S100 and the RS-232 device it is serving, either one you write yourself using the software interfaces available from Pyramid Technical Consultants, Inc., or one that is supplied by Pyramid. However you can get started immediately with basic testing using the PSI Diagnostic host program that was supplied with your S100.
PSI System Controls and Diagnostics USB A200 Fiber-optic comms S100 +24V in Figure 4. Example of connection to the S100 via an A200 and USB. Ethernet A500 Fiber-optic comms S100 +24V in Figure 5. Example of connection to the S100 via an A500 and Ethernet. Take care when making the fiber optic connections. There is a slot in the connectors on the devices which must line up with a lug on the mating connector body. Rotate the connector until you feel the lug and slot engage.
PSI System Controls and Diagnostics Figure 6. PSI Diagnostic Search Utility – adding a target IP address and port Check that the target port is checked for inclusion in the search and click the “Start” button. The autodetection process will start (figure 7). Figure 7. PSI Diagnostic Search Utility – detection in progress After a few seconds the program should find the loop controller (A300 in this example) and S100 (plus any other devices you have connected).
PSI System Controls and Diagnostics transmitted to the RS-232 port of the S100 by clicking the appropriate send button. Received ASCII characters will be displayed in the display area. Figure 8. Data tab: An S100 is connected via an A300 controller, at address 4. 9.5 Setup tab Click on the “Setup” tab. Here you can alter the baud rate, data frame structure and flow control.
PSI System Controls and Diagnostics Figure 9. Setup tab. Baud rate Select the RS-232 data rate in bits per second to match the RS-232 device. The standard RS-232 rates between 115200 kbps and 1200 bps are supported. Note that mode selector switch on the S100 includes data rate selections, but these refer to the fiber optic channel, not the RS-232.
PSI System Controls and Diagnostics 9.6 Device tab Click on the “Device” tab. You can check the fiber optic communication link status, read the S100 manufacturing serial number and verify the versions of the hardware and firmware. On the right is the firmware update utility. You can use this to download firmware updates (.hex files) downloaded from the Pyramid Technical Consultants, Inc. web site. Figure 10. Device tab, showing firmware update utility controls.
PSI System Controls and Diagnostics Select hex file This button starts the S100 firmware update process. It opens a file selection dialog. When you select a hex file it will start uploading to the S100 immediately. Upon completion the S100 will restart automatically, and you will see the new Device Version number displayed. See section 14 for more details. Reset This button causes a full warm reset of the S100. 9.
PSI System Controls and Diagnostics Figure 11. ASCII communication test between the PSI Diagnostic and Windows Hyperterminal.
PSI System Controls and Diagnostics 10 Data framing and Flow Control 10.1 Data framing Each data packet in an RS-232 message comprises a start bit, up to eight data bits, an optional parity bit and one or two stop bits. The electrical levels pre-date TTL logic. A negative voltage in the range -3 to -25 V indicates logic 1, also called “mark”. A positive voltage in the range +3 to +25 V indicates logic 0, also called “space”.
PSI System Controls and Diagnostics Gnd Tx Rx 5 To S100 1 1 Data Carrier Detect 4 Data Terminal Ready 6 Data Set Ready 9 6 7 Request to Send 8 Clear to Send Figure 12. Handshake loopback for a PC serial port (DTE). View on face of connector / solder side of mating connector. 10.2.2 Software flow control The S100 supports Xon/Xoff software handshaking for ASCII communications.
PSI System Controls and Diagnostics 11 Circuit overview An FPGA (field-programmable gate array) manages communications on the fiber optic loop. A microcontroller handles the RS-232 messaging and communicates directly with the FPGA. An RS-232 transceiver generates and handles the RS-232 voltage levels. A four pin pad allows two jumpers to be positioned to connect the S100 RS-232 Tx to pin 2 and Rx to pin 3 (the default), or vice versa. +3.3 V +1.
PSI System Controls and Diagnostics 12 Connectors 12.1 Front panel connectors 12.1.1 RS-232 Nine pin sub-miniature D female. (External view on connector / solder side of mating plug) 1 2 3 4 5 n/c Transmit Receive n/c Digital ground 6 7 8 9 n/c n/c n/c n/c Note: The default setting of internal JPR1 gives the allocations shown. In RS-232 parlance, the S100 is configured as Data Circuit-terminating Equipment (DCE).
PSI System Controls and Diagnostics 12.2.2 Fiber-optic communications ST bayonet. To mate with ST male terminated fiber optic cable. Recommended cable types 1 mm plastic (such as Avago HFBR-EUS-500) or 200 um silica (such as OCS BC03597-10 BL). Signal: 650 nm light (red).
PSI System Controls and Diagnostics 13 Controls and Indicators 13.1 Front panel controls 13.1.1 Address switch 16 position rotary switch setting device address. Choice of address is arbitrary, but each device in a fiber-optic loop system must have a unique address. Setting 0 1-F (decimal 1 to 15) Function (Reserved to loop controller) Available address settings. 13.1.2 Mode switch Ten-position rotary switch setting fiber-optic communications mode.
PSI System Controls and Diagnostics Status Rcv Xmit Power 13.4.1 Power Green LED. On = input power is present; internal DC-DC converters are running. 13.4.2 Xmit Green LED. On = S100 is transmitting a message on the fiber optic channel. 13.4.3 Rcv Green LED. On = S100 is receiving a message on the fiber-optic channel. 13.4.4 Status Green LED. On = S100 internal processor has booted and is running its program. 13.
PSI System Controls and Diagnostics Figure 14. S100 internal jumper and switch locations 13.5.1 JPR1 settings Transmit and receive pin assignment.
PSI System Controls and Diagnostics Figure 15. JPR1 configuration A (links perpendicular to D connector body) Figure 16. JPR1 configuration B (links parallel to D connector body) 13.5.2 SW1 settings Two way DIP switch controlling special software functions.
PSI System Controls and Diagnostics 14 Software updates The S100 has three embedded firmware releases. Firmware Function FPGA (.pof file) General logic, loop message passthrough. PIC Boot (.hex file) Boot up, code upload PIC Application (.hex file) Main application. The FPGA and PIC microcontroller boot code should not require updating. They require access to the circuit board and dedicated programming tools to load new code.
PSI System Controls and Diagnostics Figure 18. Firmware upload in progress.
PSI System Controls and Diagnostics 15 Fault-finding Symptom Possible Cause Confirmation Solution No response from RS-232 device RS-232 transmit and receive lines not connected correctly Swap transmit and receive, in cable or using JPR1. Use correct cable configuration RS-232 communication parameters incorrect. Check parameters for RS-232 device and set up S100 accordingly. Garbled communication RS-232 communication parameters incorrect.
PSI System Controls and Diagnostics connectors. Check light can be seen through fiber. Exchange fibers and retry Incorrect setting of mode switch as necessary. Set mode switch correctly to suit your loop controller and host software. Device loop address not as expected Address switch not at a valid setting Communications interruptions Other processes on PC host interfering with comms ports. Use a dedicated PC with simple configuration and minimum number of processes running.
PSI System Controls and Diagnostics 16 Maintenance The S100 does not require routine maintenance or calibration. There is risk of contamination which may degrade performance if the case is opened. There are no user-serviceable parts inside. The S100 is fitted with a 1.1 A automatically resetting positive temperature coefficient (PTC) fuse in the 24 VDC input. No user intervention is required if the fuse operates due to overcurrent. The fuse will reset when the overcurrent condition ends.
PSI System Controls and Diagnostics 17 Returns procedure Damaged or faulty units cannot be returned unless a Returns Material Authorization (RMA) number has been issued by Pyramid Technical Consultants, Inc. If you need to return a unit, contact Pyramid Technical Consultants at support@ptcusa.com, stating - model - serial number - nature of fault An RMA will be issued, including details of which service center to return the unit to.
PSI System Controls and Diagnostics 18 Support Manual and software driver updates are available for download from the Pyramid Technical Consultants website at www.ptcusa.com. Technical support is available by email from support@ptcusa.com. Please provide the model number and serial number of your unit, plus relevant details of your application.
PSI System Controls and Diagnostics 19 Declaration of Conformity S100 User Manual S100_UM_081031 Page 40 of 41
PSI System Controls and Diagnostics 20 Revision History The release date of a Pyramid Technical Consultants, Inc. user manual can be determined from the document file name, where it is encoded yymmdd. For example, B10_UM_080105 would be a B10 manual released on 5 January 2008.