Publication 0300129-02 Rev.
IMPORTANT NOTES 1. READ ALL OF THE INFORMATION CONTAINED IN THIS MANUAL BEFORE YOU INSTALL THE PRODUCT. 2. The information contained in this manual applies to hardware and software version 1.0 or later. 3. This manual assumes a full working knowledge of the relevant programmable controller. NOTICE The products and services described in this manual are useful in a wide variety of applications.
LIMITED WARRANTY Spectrum Controls warrants that its products are free from defects in material and workmanship under normal use and service, as described in Spectrum Controls literature covering this product, for a period of 1 year.
CONTENTS CHAPTER 1: COMMUNICATIONS ........................................ 1 Using the Communications Port .................................... 1 Using the SOI-260’s Optional Printer Port..................... 3 ASCII Input ................................................................... 3 Special Switch Settings ................................................... 4 CHAPTER 2: PROGRAMMING ............................................. 5 Supported Operand Types .............................................
CHAPTER 1: COMMUNICATIONS CHAPTER 1: COMMUNICATIONS This chapter of the Siemens (S5 Communications) Reference concerns: the cabling needed to use the SOI-120 or SOI-260 Communications Port and the SOI-260’s optional Printer Port, using the SOI-260’s optional Printer Port with ASCII input devices (including bar code scanners), and special PLC and SOI switch settings. Using the Communications Port The communications port may be used for up/downloading application programs or communicating with the PLC.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE SOI RS-232 Communications Port Computer Serial Port (COM1, COM2) 9 pin: Data In Data Out Signal Ground 9 pin: 9 pin: Data In Data Out Signal Ground 1 2 3 4 5 6 7 8 9 1 2 3 4 5 6 7 8 9 Data In Data Out Signal Ground 25 pin: 1 2 Data Out 3 Data In 4 5 6 7 Signal Ground 8 25 1 2 3 4 5 6 7 8 9 Male Connector Female Connector SOI Up/Download via RS-232 Communication Port with SCC-3 Cable If you don’t want to build your own cable, Spectrum Controls offers the S
CHAPTER 1: COMMUNICATIONS Adapter 25-Pin Male Connector TXD RXD Signal Ground DTR 2 3 7 20 9-Pin Female Connector 3 2 5 4 TXD RXD Signal Ground DTR SOI-to-PLC Communications Cable Requirements For communications, a SIMATIC S5 programmable controller contains a single programming port (which may also be used for point-to-point communications, as supported by the S5 protocol). The programming port is a female 15-pin D-sub connector configured as a serial digital 20 mA current loop interface.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE Note If an odd number of characters is received from the scanner, a Null character is added to create an even byte count. This facilitates word writes to the controller. If keypad entry is enabled, the operator may also enter the decimal equivalent of an ASCII character in the data entry field. For example, an operator can manually enter 2 characters and then scan a bar code containing 8 characters. The SOI then writes all 10 characters to the controller.
CHAPTER 2: PROGRAMMING CHAPTER 2: PROGRAMMING This chapter of the Siemens (S5 Communications) Reference addresses supported PLC registers and data formats, screen types and definitions, and PLC-specific configuration requirements.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE The S5 operands listed above can be addressed as bits, words, or bytes (exception: Timers and Counters are addressed as bits or words). Input Word 0, for example, would contain Input Bytes 0 and 1. Input Word 1 would contain Input Bytes 1 and 2. To address a word, the IW, QW, FW, T, C, and DW ID codes are used. To address a byte, the IB, QB, FY, DL (Data Word Left), and DR (Data Word Right) codes are used.
CHAPTER 2: PROGRAMMING Bit (KM) Bit Data MSB 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 LSB 16 individual bits (One 16-bit location) The PLC stores a binary (0 or 1) status for a bit location. The SOI will read a PLC bit location and determine whether the operational status of the bit is ON (1) or OFF (0). You can specify associated text to be displayed for either state of a specified bit. This description can be up to twenty characters.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE 16-Bit Signed Integer (Fixed Point, KF) 16-Bit Signed Integer MSB 15-Bit Data Field LSB Bit 15 (sign bit) Bit 0 Range = -32768 to +32767 This data type displays a 16-bit register as a signed Integer (two’s complement) value. The 16th bit of the register is the sign bit and is set (1) for a negative and cleared (0) for a positive number. The 16-bit signed integer values have a range of -32768 to +32767.
CHAPTER 2: PROGRAMMING This data type displays a 16-bit register location as a 4-digit Binary Coded Decimal value. The range for the 16 bit BCD selection is 0 to +9999. Note: This data format may also be scaled to different engineering units. 16-Bit Hexadecimal (KH) 16-Bit HEX MSB Digit 4 Bit 15 Digit 3 Bit 12 Bit 11 Digit 2 Bit 8 Bit 7 Digit 1 Bit 4 Bit 3 Bit 0 LSB Range = 0 to FFFF This data type displays a 16-bit register location as a 4-digit hexadecimal value.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE 32-Bit Binary Coded Decimal (KH) 32-Bit BCD MSB 16-Bit Location #1 16-Bit Location #2 (next sequential location) LSB Range = 0 to 99,999,999 This data type displays two consecutive 16-bit register locations as a 32bit BCD value. It uses a memory register plus the next higher register to form the 32 bit location. The range for the 32 bit BCD value is 0 to +99,999,999. Note: This data format may not be scaled to different engineering units.
CHAPTER 2: PROGRAMMING Each 16-bit location may contain two ASCII characters (1 byte each). By default, the most significant byte of the base address stores the first character, the least significant byte stores the second character, the first byte of the next sequential location stores the third character, and so on. The data held in this range of address locations is expected to be an ASCII data format.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE Screen Types and Data Formats Each SOI Screen type may not support all data formats. The following lists each screen type and the associated data formats supported.
CHAPTER 2: PROGRAMMING Data Display and Entry Screen Definitions When programming Data Display and Data Entry fields and positioning them on the SOI display, each field must be defined according to its PLC location, data format, and other data parameters specific to the data format selected. You are prompted for the register definitions at the Control Window.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE 14 Display Screen Parameter for: 16-Bit Unsigned Integer, 8-Bit Unsigned Integer, 16-Bit Signed Integer & 16-Bit BCD Data Description Register Number The PLC data location operand and address. Digits Right of Decimal The number of digits to be placed to the right of the decimal. Digits Left of Decimal The number of digits to be placed to the left of the decimal.
CHAPTER 2: PROGRAMMING Display Screen Parameter for: 32-Bit Unsigned Integer & 32-Bit BCD Data Description Register Number The PLC data location operand and address. Digits Right of Decimal The number of digits to be placed to the right of the decimal. Digits Left of Decimal The number of digits to be placed to the left of the decimal. Show Leading Zeros (Y or N) Display any zeros to the left of the data. Note : For the 32-Bit BCD selections, scaling of data is not supported.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE Data Entry Screens The data format selections available for Data Entry screens are listed below and their parameters described. Entry Screen Parameter for: Bit Data Description Register Number The PLC data location operand and address. Bit Number The Bit number if the register number designates a multiple bit location (a 16 bit data address, for example). This selection is irrelevant if the register number refers to a Bit type address.
CHAPTER 2: PROGRAMMING Entry Screen Parameter for: 16-Bit Unsigned Integer, 8-Bit Unsigned Integer, 16-Bit Signed Integer & 16-Bit BCD Data Description Register Number The PLC data location operand and address. Digits Right of Decimal The number of digits to be placed to the right of the decimal. Digits Left of Decimal The number of digits to be placed to the left of the decimal. Leave Place for Sign (Y or N) Leave a one character place for the polarity sign (+ or -) when the data is displayed.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE Entry Screen Parameter for: ASCII Data Description Register Number The PLC data location operand and address. Character Count The number of characters (2 characters for each 16 bit data location) to be displayed, up to a maximum of 20 characters. The initial byte of the location identified by the register number is displayed first, then the second byte, the first byte of the next higher sequential location, and so on.
CHAPTER 2: PROGRAMMING SOI Configuration Data Menu This section describes the PLC-specific requirements that the SOI-SPS programming software supports. The programming information may be found at the SOI Configuration Data Menu in the SOI-SPS software. Note: Refer to the SOI-SPS programming software manual for complete details on programming and additional information regarding the SOI configuration Data Menu.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE Communications Port Setup To define the Communications Port Parameters, select SOI Configuration Data from the Edit File - Option Selection menu. At the SOI Configuration Data menu, select the PLC Hardware Parameters item. The baud rate, data bits, and parity information must be entered to match the respective settings of the S5 processor.
CHAPTER 3: TROUBLESHOOTING CHAPTER 3: TROUBLESHOOTING This chapter of the Siemens (S5 Communications) Reference provides solutions to possible operational problems with the SOI and its use with the Siemens S5 processor. Also contained is a description of the Communication Error Codes specific to the S5 communication protocol used for the S5 processor and the SOI.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE The following indicates PLC-oriented problems displayed on the SOI and possible actions to take if necessary. S5 PROTOCOL Establishing COMM Attempting to communicate to PLC This is the normal display when initiating communications with the PLC. S5 PROTOCOL This is displayed after a 4-second interval of attempting to establish communications with the PLC. Check cabling and communications parameters to verify that the PLC matches those of the SOI.
CHAPTER 3: TROUBLESHOOTING Error Code Description 12H, 15H, 16H General Message Structure Error An expected message response from the PLC did not occur. For example, an error would occur if the SOI expected but did not receive an acknowledge from the PLC of data written to the PLC. 14H Illegal Data Block The SOI requested a data block that is undefined within the PLC. The operator should request data from a data block that has been defined by the programming of the PLC.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE 24
CHAPTER 4: SPECIAL OPERATIONS CHAPTER 4: SPECIAL OPERATIONS After pressing the Function Key (SOI-260) or Mode Key (SOI-120), one of the menu item selections is called SPECIAL. This selection provides access to two functions: the Point-Access/Display (P-A/D) function and the PLC Start/Stop function. ! CAUTION: The Point-Access/Display function is a powerful tool. Its access should be restricted solely to authorized personnel.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE Accessing Special Operations in the SOI-260 Figure 4.
CHAPTER 4: SPECIAL OPERATIONS 5. If you selected the Data Block operand type, enter the block you want to display or modify. For all other operand types, press “Y” or “N” to increment or decrement the address shown, and then press “↵” (the enter key) to display the contents in real time. Note: The contents of each address appear in several different formats, depending on the operand type selected. 6. Press “PREV” or “NEXT” to move the cursor to the field you want to modify, and enter new data, if desired.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE Accessing Special Operations in the SOI-120 Figure 4.
CHAPTER 4: SPECIAL OPERATIONS 5. If you selected the Data Block operand type, enter the block you want to display or modify. For all other operand types, press “F1” or “F2” to increment or decrement the address shown, and then press “↵” (the enter key) to display the contents in real time. Note: The contents of each address appear in several different formats, depending on the operand type selected. 6.
SIEMENS (S5 COMMUNICATIONS ) REFERENCE 30
INDEX INDEX Symbols 16-bit formats BCD 8–9 Hex 9 signed integer 8 unsigned integer 8 32-bit formats BCD 10 Hex 10 unsigned integer 9 A ASCII data input 3–4 format 10–11 Communications 1 error codes 22–23 port 1–3, 20 SOI-to-PLC 3 Configuration data menu 19–20 D Data display screen parameters 13–15 entry screen parameters 16–18 formats supported 6–11, 12 Data bits 20 DIP switch settings 4 Display screen parameters 13–15 Download/upload cabling 1–2 E B Barcode scanner 3–4 Baud rate 20 BCD formats 16-bit
SIEMENS (S5 COMMUNICATIONS ) REFERENCE M Menu, configuration data 19–20 O Operands accessing/displaying SOI-120 28–29 SOI-260 26–27 supported 5–6 P P-A/D.
Copyright © 1999 Spectrum Controls, Inc. All rights reserved. Specifications subject to change without notice. Printed in U.S.A. Publication 0300129-02 Rev. C January 1999 Corporate Headquarters Spectrum Controls, Inc. P.O. Box 5533 • Bellevue, Washington 98006 Fax: (425) 641-9473 • Tel: (425) 746-9481 Northeastern U.S.A. Sales Office Spectrum Controls, Inc. 48945 Van Dyke, 4B • Utica, Michigan 48317 Fax: (586) 731-2715 • Tel: (586) 731-2397 Southeastern U.S.A. Sales Office Spectrum Controls, Inc.