Programming System. 907 PC 331 Programming and Test Software. ABB Schalt und Steuerungstechnik



Similar documents
ABB Schalt und Steuerungstechnik. Programming System

Virtual Integrated Design Getting started with RS232 Hex Com Tool v6.0

OPERATOR INTERFACE PRODUCTS APPLICATION NOTE. Xycom 4800/2000 OIL (Operator Interface Language)- Series Terminals: Backup and Restore with ProComm

Unique Micro Design Advanced Thinking Products. Model S151 UMD Transfer Utility for the Nippondenso BHT Series User Manual

LTM-1338B. Plus Communications Manual

SUDT AccessPort TM Advanced Terminal / Monitor / Debugger Version 1.37 User Manual

CONCEPT1 RS232 COMMUNICATION

Laser Barcode Scanner

RS232 Programming and Troubleshooting Guide for Turbo Controls

Laser Barcode Scanner User s Manual

Sartorius YAD01IS Win

DeviceNet Bus Software Help for Programming an Allen Bradley Control System

Application Bulletin

#65 4GHGTGPEG")WKFG #FXCPEGF"6GTOKPCN"5QHVYCTG 8GTUKQP"502 HQT"%QPVTQNNGT/#% Catalog # Rev.02

1.1 Connection Direct COM port connection. 1. Half duplex RS232 spy cable without handshaking

Appendix A. This Appendix includes the following supplemental material:

User Manual Software for DSL Digital Speed Switch

Dial-Up / Leased-Line Modem. User Manual. AGM Electronics, Inc Dial-Up / Leased-Line Modem, Series ( ) Manual Rev A + - DLM CTS RTS DTR DSR

DriveWare. User's Guide. DriveWindow Light 2

Softstarters. Type PSTX Fieldbus communication, Built-in Modbus RTU. 1SFC132089M0201 April SFC132089M0201 1

METROLOGIC INSTRUMENTS, INC. IS4225 ScanGlove USB Addendum for the MetroSelect Single-Line Configuration Guide

AC500. Software Description. Scalable PLC for Individual Automation. Installation of the AC500 Control Builder PS501

Objectives. Basics of Serial Communication. Simplex vs Duplex. CMPE328 Microprocessors (Spring ) Serial Interfacing. By Dr.

PM1122 INT DIGITAL INTERFACE REMOTE

Using HyperTerminal with Agilent General Purpose Instruments

WIZnet S2E (Serial-to-Ethernet) Device s Configuration Tool Programming Guide

Programmer/Controller

PPM Users Manual Signature Software

Operating Instructions Serial Monitor ROBERT RIELE GmbH & Co KG

CNC Transfer. Operating Manual

The Answer to the 14 Most Frequently Asked Modbus Questions

SERIAL INTERFACE. Series SSW-03 and 04

Serial Communications

7.7 Ethernet Communication (AFPX-COM5)

Modbus Communications for PanelView Terminals

WA Manager Alarming System Management Software Windows 98, NT, XP, 2000 User Guide

PRN_LOAD :22

PRODUCT MANUAL SKX OPEN SKX ADVANCE ZN1RX-SKXOPEN. Edition 2 Version 1.1

Docklight V2.1 User Manual 08/2015. Copyright 2015 Flachmann und Heggelbacher GbR

DK40 Datasheet & Hardware manual Version 2

Different Ways of Connecting to. 3DLevelScanner II. A.P.M Automation Solutions LTD. Version 3.0

User Manuals. Connection to Siemens S5 PU (AS511) Part Number: Version: 2. Date:

Configuring Serial Terminal Emulation Programs

IP SERIAL DEVICE SERVER

APPLICATION NOTE # Using Sage SMOS for VoIP Testing, IP Phone to IP Phone TABLE OF CONTENTS

PC Base Adapter Daughter Card UART GPIO. Figure 1. ToolStick Development Platform Block Diagram

LS-101 LAN to Serial Device server. User s Manual

Single channel data transceiver module WIZ2-434

PFB366 Profibus-DP Gateway User Manual

ProCod. User Manual. Programming software for TWK - Encoders Series CRF and DAF CRF DE 08 / 10

Customer Pole Display SERIES 8035 Operation Manuanl. Version 1.1

Teleservice via RS232 interface XC100/XC200

Customer Pole Display SERIES 8035

ABB solar inverters. Installation and setup instruction Aurora Manager TL software and ABB PVI-USB-RS232_485 adapter

2. Terminal arrangement. Default (PV display) (SV display) Communication protocol selection Selects the Communication protocol. Modbus ASCII mode:

System Requirements. Hiro H50113

4511 MODBUS RTU. Configuration Manual. HART transparent driver. No. 9107MCM100(1328)

TP- 051 GPS RECEIVER

MTS Master Custom Communications Protocol APPLICATION NOTES

Quectel Cellular Engine

Sending SMS Messages and s

version 3.1. Security modem with USB port user guide

RS232C < - > RS485 CONVERTER S MANUAL. Model: LD15U. Phone: / 97 / 98 (M)

CDI-S100 SERIAL INTERFACE CARD

QuickScan Mobile. Reference Manual

How To Send A Message From A Computer To A Computer (Iwea) On A Microsoft Macbook 2.5 (Isoa) To A Microsatellite 2.4 (Ios) On An Unix (Ise

Programming and Using the Courier V.Everything Modem for Remote Operation of DDF6000

Index...1. Introduction...3. Installation- Keyboard Wedge...3 RS USB...3. Default Setting for each barcode shown as below:...

The Analyst RS422/RS232 Tester. With. VTR, Monitor, and Data Logging Option (LOG2) User Manual

CNC File Transfer Box. Connecting the CNC File Transfer. CNC Transfer Program

E-i. Section E. Code Formatting. E/D = Enable/Disable T/DNT = Transmit/Do Not Transmit EX/DNEX = Expand/Do Not Expand

User's Guide. Using RFDBManager. For 433 MHz / 2.4 GHz RF. Version

DSA-1000 / PRT-1000 Device Server / Thermal Printer

NUM INFORMATION US N 111 1/9

HP Security Modules. Software Upgrade Guide. Part number: Document version: 6PW

Device configurator DRC200

Application Unit, MDRC AB/S 1.1, GH Q R0111

1-Port R422/485 Serial PCIe Card

What is Easy-Radio? Devices Covered. Frequency Hopping Transceiver. Where x00 denotes frequency of operation. E.g. 400 = 433MHz

TAP Interface Specifications

TUNABLE ANTENNAFIER LT/DT SERIES INSTALLATION INSTRUCTIONS

Addendum Advanced POS Printer Drivers

This chapter describes the specifications of the embedded Ethernet function for Series 16i/18i/21i/160i/180i/210i/160is/180is/210is B.

ATS Advanced Terminal Software Version 1.9 Reference Guide for Controller-A

HAND-HELD DEVICES II. Software Configuration Manual

Chapter 46 Terminal Server

How To Use A Power Supply On A Powerline 2.2 (Ai)

ABB i-bus KNX i-bus Tool Product Information

LDG Electronics External Meter Serial Communications Protocol Specification

MINIMUM TOOL REQUIREMENT FOR EPROM UPGRADE

Timeout The Crosspoint Status Request message has a timeout, which means that you need to wait 1 second in between request messages.

Programmable Safety Systems PSS-Range

Software User Guide UG-461

µtasker Document FTP Client

PTPhoneManager II. User guide

Voyager 9520/40 Voyager GS9590 Eclipse 5145

XP Series Balances Operation Manual

Part No. : MUL PROGRAMMING GUIDE

Serial Communications / Protocol in AirTest Products

Transcription:

ABB Procontic Programming System 907 PC 331 Programming and Test Software ABB Schalt und Steuerungstechnik

Contents 1 Examples on transmission and reception of texts when DRUCK, EMAS etc. are used............... A 1 1.1 Example program Sending data from the PLC (07 KT 92) to a terminal...................... A 1 1.2 Example program Receiving data from a terminal.................... A 5 2 System reaction if an incorrect program is sent.................. A 10 For further information concerning the used function blocks see volume 7, CE Library. 907 PC 331/Issued: 01.95 0 1 APPENDIX

APPENDIX 0 2 907 PC 331/Issued: 01.95

1 Examples on transmission and reception of texts when DRUCK, EMAS etc. are used 1.1 Example program Sending data from the PLC (07 KT 92) to a terminal Load example program: Insert diskette 1 of the programming software into drive A: As usual, call the programming software under \ABB SPS\CS31. You will find the submenu point Data restore under the main menu point Project man. Call this point. Specify A:\DAT_SEND as file to be saved. For target drive specify C: Press <F1>. Now the example program will be copied into the directory C:\ABB SPS\CS31\BSP. When calling the example you must enter this path and the name DAT_SEND in the image Project data for project. Using the example program, data are sent via the serial interface of the 07 KT 92 PLC to a terminal or a PC. The following data is transmitted as text: Hallo, data are sent to a terminal in this way. The system cable 07 SK 91 is used as connection cable between the PLC and the terminal. 07 SK 91 07 KT 92 COM2 Terminal COM1 07 SK 90 Programming cable Fig.: Structure Both, the interface of the terminal and the interface of the PLC must have the same settings (see segment plan1, INITIALIZATION). RTS/CTS is used for handshake (not XON/XOFF). You can also use a PC with 907 PC 331 instead of a terminal. Call the terminal emulation in 907 PC 331. If you only have one PC, proceed with 07 KT 92 in the same way as described with 07 KR 91. Notes for the use of 07 KR 91: The 07 KR 91 PLC has only one interface COM1. In order to use the example, the following changes are required for this PLC: For the parameter SSK of the blocks SINIT and DRUCK, 1 must be entered for COM1. The system cable 07 SK 90 must be used for the program transmission. After that, for the data display, this cable must be unplugged and the cable 07 SK 91 must be used instead. 907 PC 331/Issued: 11.98 A 1

Program description Segment plan 1: INITIALIZATION In this program part, the interface COM2 of the PLC is initialized in the following way: Once at the start of the program Call SINIT function block Use M 255,15 flag M 255,15 is 0 at the start of the program Invert value and allocate M 001,00 Put value of 1 of M 001,00 to the enable input FREI of SINIT: the interface is now initialized. Set M 255,15 to 1 at the end of the program > with the next program execution the SINIT block is not executed any more. = M 255,15 M 001,00 The parameters of the interface are set as follows: Explanation Input Value Interface No. 2 = COM2 SSK 2 Baud rate BAUD 9600 Number of stop bits STOP 1 Number of data bits per character ZL 8 Transmission without parity bit PTY 0 Odd parity bit (no effect because of PTY) E/O 0 No echo ECHO 0 Normal status of the send signal TxD SBRK 0 No output of text termination character FEND 0 Text termination character for sending direction (without effect) ENDS 13 (=CR) Text termination character for receiving direction ENDE 13 (=CR) These values are entered by means of constants. They can be entered in the variable editor via the long text of the constants. M 001,00 KW 10,00 KW 10,01 KW 10,02 KW 10,03 KW 10,04 KW 10,05 SINIT FREI SSK BAUD STOP ZL PTY E/O ECHO SBRK FEND ENDS ENDE A 2 907 PC 331/Issued: 11.98

Segment plan 2: SEND DATA In this program part, the sending procedure is realized. The DRUCK block is used for sending data. In order to trigger the sending procedure cyclically, a flip flop is built first. This flip flop provides a 0 >1 edge at its output M 000,00 to enable the DRUCK block. FLIP FLOP for realization of the enabling edge for the DRUCK block. A 0 >1 edge is generated periodically on a time base given in KD 02,00. M 050,00 = ESV M 000,00 T 0 SR Q S Q M 000,00 KD 02,00 ZD M 000,00 ESV T 0 Q R KD 02,00 ZD Sending procedure with the DRUCK block There are two texts available for sending. The first text (fixed text) is connected to TX0...2. The second text (fixed text + value) is connected to TX3...8. The parameters of the block are set as follows: Explanation Parameter Value Enabling the block with the 0 >1 edge for FREI 0 >1 edge outputting a text Interface No. (2 for COM2) SSK 2 Number of the text to be output TXNR 1 or 2 Text; the text starts with the text number (1st text: 1); TX0 1 after the text number the real text follows; TX1 \027\013 each text starts with # first a device dependent control sequence follows (\27... = <ESC>...) for cursor positioning, then, the text to be displayed follows. TX2 Hallo, so... 2nd text; the text starts with the text number (2) TX3 2 Text to be output TX4 It follows... Space character before number to be output TX5 \032 Type of format (205: 2 > word; 05 > five digits with leading zeros; for more information TX6 205 see DRUCK block documentation) Value to be output TX7 123 Jump to the start of the next line: <CR><LF> TX8 \013\010 Output Ready: If RDY = 1 the block is ready for RDY Ready message outputting a text 907 PC 331/Issued: 11.98 A 3

M 000,00 KW 10,00 KW 11,00 # +00001 # \027\013 # Hallo, s # +00002 # It follows # \032 # +00205 MW 012,00 # \013\010 DRUCK FREI SSK TXNR TX0 RDY A 62,00 TX1 TX2 TX3 TX4 TX5 TX6 TX7 TX8 Segment plan 3: PROGRAM END M 255,15 is set to 1, and, beginning with the next program cycle, the SINIT block is no loger executed. =S K 00,01 M 255,15 PE A 4 907 PC 331/Issued: 11.98

1.2 Example program Receiving data from a terminal Load example program: Insert diskette 1 of the programming software into drive A: As usual, call the programming software under \ABB SPS\CS31. You will find the submenu point Data restore under the main menu point Project man. Call this point. Specify A:\DAT_EMPF as file to be saved. For target drive specify C: Press <F1>. Now the example program will be copied into the directory C:\ABB SPS\CS31\BSP. When calling the example you must enter this path and the name DAT_EMPF in the image Project data for project. Using the example program, data are received from a terminal via the serial interface COM2 of the 07 KT 92 PLC. It is dealt with 5 different telegrams. 07 SK 91 07 KT 92 COM2 Terminal COM1 07 SK 90 Programming cable Fig.: Structure Both, the interface of the terminal and the interface of the PLC must have the same settings (see segment plan1, INITIALIZATION). RTS/CTS is used for handshake (not XON/XOFF). Check data reception: If keys are pressed at the terminal, the PLC will receive data. This data reception can be checked. For this purpose, display the EMASm block in the FBD/LD editor, segment plan RECEIVE DATA. Switch on ONLINE then. In order to select the format of representation, press the <D> key and select the desired format in the displayed menu then. In addition, you can select the word representation (press the <X> key). You can check the received data at the outputs TELN and MW0...3. Notes for the use of 07 KR 91: The 07 KR 91 PLC has only one interface COM1. In order to use the example, the following changes are required for this PLC: For the parameter SSK of the blocks SINIT and EMASm, 1 must be entered for COM1. The system cable 07 SK 90 must be used for the program transmission. After that, for the data reception this cable must be unplugged and the cable 07 SK 91 must be used instead. 907 PC 331/Issued: 11.98 A 5

Program description Segment plan 1: INITIALIZATION In this program part, the interface COM2 of the PLC is initialized in the following way: Once at the start of the program Call SINIT function block Use M 255,15 flag M 255,15 is 0 at the start of the program Invert value and allocate M 001,00 Put value of 1 of M 001,00 to the enable input FREI of SINIT: the interface is now initialized. Set M 255,15 to 1 at the end of the program > with the next program execution the SINIT block is not executed any more. = M 255,15 M 001,00 The parameters of the interface are set as follows: Explanation Input Value Interface No. 2 = COM2 SSK 2 Baud rate BAUD 9600 Number of stop bits STOP 1 Number of data bits per character ZL 8 Transmission without parity bit PTY 0 Odd parity bit (no effect because of PTY) E/O 0 No echo ECHO 0 Normal status of the send signal TxD SBRK 0 No output of text termination character FEND 0 Text termination character for sending direction (without effect) ENDS 13 (=CR) Text termination character for receiving direction ENDE 13 (=CR) These values are entered by means of constants. They can be entered in the variable editor via the long text of the constants. M 001,00 KW 10,00 KW 10,01 KW 10,02 KW 10,03 KW 10,04 KW 10,05 SINIT FREI SSK BAUD STOP ZL PTY E/O ECHO SBRK FEND ENDS ENDE A 6 907 PC 331/Issued: 11.98

Segment plan 2: RECEIVE DATA In this program part, the receiving procedure is realized. The EMASm block is used for receiving data. When the program is started, the value of 0 is at the QUIT input. Therefore, the block is able to receive a telegram. Receiving procedure with the EMASm block The parameters of the block are set as follows: Explanation Parameters Value If 0, the block is always ready to receive ASCII QUIT 0 characters from the interface Interface No. (2 for COM2) SSK 2 Maximum number of user data outputs MWn; in this #ANU 4 example: max. 4 ASCII characters Comparative telegram No. 1 VT0 #1 1st comparative text: # * i.e. 1 random VT1 1 ASCII char. ASCII character, terminated by <CR> Comparative telegram No. 2 VT2 #2 2nd comparative text: # ** i.e. 2 random VT3 2 ASCII char. ASCII characters, terminated by <CR> etc. The output indicates whether the received data MEUN 0 or 1 in MW0...3 are valid (0) or invalid (1) The output reports with a 1 that the telegramm RDY 0 or 1 was received and processed Number of the received and valid telegram TELN 1...5 The received characters from a valid telegram MW0...4 ASCII ch./number are stored here 5 different telegrams can be received in this example: Telegram 1: Telegram 2: Telegram 3: 1 random ASCII character, which was terminated by <CR>. MW 11,00 then contains 1, MW 10,01 contains the received ASCII character. 2 random ASCII characters, which were terminated by <CR>. MW 11,00 then contains 2, MW 10,01...02 contain the received ASCII characters. This telegram can only receive the characters ABB, which were terminated by <CR>. Since this character string can definitely be assigned to telegram No. 3, only MW 11,00 contains a 3. Telegram 4: 4 random ASCII characters, which were terminated by <CR>. MW 11,00 then contains 4, MW 10,01...MW 10,04 contain the received ASCII characters. Telegram 5: A 5 digit number with sign (+32767... 32767), which were terminated by <CR>. MW 11,00 then contains 5, MW 10,01 contains the received 5 digit number (inclusive sign if the number is negative). 907 PC 331/Issued: 11.98 A 7

EMASm M 002,00 QUIT KW 10,00 SSK # +00004 #ANU # +00001 VT0 # * VT1 # +00002 VT2 # ** VT3 # +00003 VT4 # ABB VT5 # +00004 VT6 # **** VT7 # +00005 VT8 # ##### VT9 MEUN M 015,00 RDY M 016,00 TELN MW 011,00 MW0 MW 010,00 MW1 MW 010,01 MW2 MW 010,02 MW3 MW 010,03 & M 050,01 I+ 0 1 Q PULS M 050,02 M 002,00 Procedure in case of invalid telegrams The following example is valid: ABC<CR>. It contains 3 characters followed by a <CR>. The 3 characters, however, do not match with ABB, the only possibility to send 3 characters (telegram No. 3). In such a case the EMASm block must be acknowledged before a new telegram can be received. For acknowledgement, the outputs MEUN and READY must be AND combined. If an invalid telegram has been received, these outputs MEUN and READY were set to 1. The input of the block I+ then gets signal 1, and the block generates an impulse. This impulse acknowledges the EMASm block with its 0 >1 edge. EMASm is locked for one program cycle. In the next program cycle, EMASm is ready again for receiving data. A 8 907 PC 331/Issued: 11.98

Segment plan 3: PROGRAM END M 255,15 is set to 1, and, beginning with the next program cycle, the SINIT block is no loger executed. =S K 00,01 M 255,15 PE 907 PC 331/Issued: 11.98 A 9

2 System reaction if an incorrect program is sent a) Sending of an incorrect program with the status PLC is running In the following example, a program is sent which contains the FKG function block. The input #2*n has a wrong specification. The PLC checks the correctness only with the enabling, i.e. the error cannot be detected during the sending procedure. PROJECT: TEST SP No.:002 ABS TX: TY: MW 010,00 # +00006 KW 10,00 KW 10,01 KW 10,02 KW 10,03 FKG x #2*n XC0 XC1 YC0 y YC1 MW 012,00 Accept changes? Yes No Cons 00020 Constants have been sent completely. A 10 907 PC 331/Issued: 11.98

After the user has enabled the Online program changes, the PLC detects the wrong definition at the FKG block and sends an error message to the programming system. The changes will not be enabled. The old program still runs. PROJECT: TEST SP No.:002 ABS TX: TY: MW 010,00 # +00006 KW 10,00 KW 10,01 KW 10,02 KW 10,03 FKG x #2*n XC0 XC1 YC0 y YC1 MW 012,00 Changes have not been anabled <Key> BLOCK ERROR 00129 FKG AT ADDRESS: 00137 <KEY> After the error has been remedied, the entire program must be sent to the PLC. 907 PC 331/Issued: 11.98 A 11

b) Sending of an incorrect program with the status PLC is aborted The error at the FKG block is detected by the PLC on the transition from the status aborted to the status running. If the PLC has received the Start command in Online from 907 PC 331, the error message shown below appears. PROJECT: TEST SP No.:002 ABS ONLINE TX:03 TY:007 =SPS:$ PRG:1 aborted Variable status FKG 0000 x # +00006 4000 00C8 0000 #2*n XC0 XC1 YC0 y 0000 0000 YC1 0000 Program error: PLC could not be started <Key> BLOCK ERROR 00129 FKG AT ADDRESS: 00137 <Key> A 12 907 PC 331/Issued: 11.98

Printed on chlorine-free bleached paper ABB Schalt- und Steuerungstechnik GmbH Eppelheimer Straße 82 Postfach 10 50 09 D-69123 Heidelberg D-69040 Heidelberg Telephone +49 6221 777-0 Telefax +49 6221 777-111 E-Mail desst.helpline@de.abb.com Internet http://www.abb-sst.de Printed in the Federal Republic of Germany (08.99)