Read Twincat ADS-AMS Driver Manual text version

Beckhoff Automation GmbH

TwinCat ADS/AMS Driver Manual

Copyright 2008 Pro-face Europe B.V Manual

1 of 24

CONFIGURATION ................................................................................................................. ................................................................ 1 SYSTEM CONFIGURATION ................................................................................................................. 3 1.1 SUPPORTED DISPLAYS...............................................................................................................................4 1.2 SUPPORTED SCREEN EDITOR SOFTWARE ..................................................................................................5 CONFIGURATION ....................................................................................................... ................................................................ 2 CONNECTION CONFIGURATION ....................................................................................................... 5 2.1 CABLE DIAGRAMS .....................................................................................................................................6 EXTERNAL DEVICE................................................................................................ .................................................................................................. 3 SELECTION OF EXTERNAL DEVICE .................................................................................................. 6 SETTINGS ............................................................................................................ ................................................................ 4 COMMUNICATION SETTINGS ............................................................................................................ 6 4.1 AGP SETTINGS..........................................................................................................................................6 4.2 DEVICE / PLC SETTINGS ...........................................................................................................................7 4.3 OFFLINE SETTINGS ...................................................................................................................................8 4.3.1 Middle Size Offline Screen...............................................................................................................8 4.3.2 Large Size Offline Screens...............................................................................................................9 ......................................................................................................................... ................................................................ 5 SUPPORTED DEVICE ......................................................................................................................... 10 5.1 BUS TERMINAL........................................................................................................................................10 5.2 EMBEDDED PC AND/OR IPC....................................................................................................................10 5.3 INTERNAL DEVICE CODES AND ADDRESS DATA FOR THE REDIRECT FEATURE ......................................10 .......................................................................................................................... ................................................................ 6 ADDRESS SETTINGS .......................................................................................................................... 11 6.1 BUS TERMINAL CONTROLLER .................................................................................................................11 6.2 EMBEDDED PC / IPC...............................................................................................................................12 ............................................................................................................................... ................................................................ 7 TPY FILE IMPORT ............................................................................................................................... 13 7.1 DEVICE ADDRESS DIALOG .......................................................................................................................17 7.2 DEVICE CODE STRUCTURE ......................................................................................................................20 MESSAGES........................................................................................................... AGES................................................................................................ 8 RUNTIME ERROR MESSAGES........................................................................................................... 22

Copyright 2008 Pro-face Europe B.V Manual

2 of 24

1 System Configuration

The system configuration in the case when the external Device of Beckhoff Automation and the Display are connected is shown.

Series CPU Module BC9000 Link I/F RJ45 RJ45 Port Setting Example Setting Example 1 (page 6)

Bus Terminal Controller

BC9100

Setting Example 1 (page 6) Setting Example 1 (page 6) Setting Example 1 (page 6)

Ethernet (TCP)

BX9000 CX1000 CX1010 Embedded PC CX1020

X900 X900 X900 X900 X02

Setting Example 1 (page 6) Setting Example 1 (page 6) Setting Example 1 (page 6) Setting Example 1 (page 6)

CX9000

X900 X02

IPC/TwinCAT SoftPLC

RJ45

Copyright 2008 Pro-face Europe B.V Manual

3 of 24

1.1 Supported Displays

Following List contains all different supported Displays: Series AGP-32** Series Part Number AGP-3200T AGP-3200A AGP-3300L AGP-3300S AGP-3300T AGP-3301L AGP-3301S AGP-3302B AGP-3300L-D81 AGP-3300S-D81 AGP-3300T-D81 AGP-3300L-FN1M AGP-3300T-FN1M AGP-3300L-CA1M AGP-3300S-CA1M AGP-3300T-CA1M AGP-3400S AGP-3400T AGP-3450T AGP-3400S-D81 AGP-3400T-D81 AGP-3400T-FN1M AGP-3400S-CA1M AGP-3400T-CA1M AGP-3500L AGP-3500S AGP-3500T AGP-3550T AGP-3500L-D81 AGP-3500S-D81 AGP-3500T-D81 AGP-3500T-FN1M AGP-3500S-CA1M AGP-3500T-CA1M AGP-3510T AGP-3560T AGP-3510T-CA1M AGP-3600T AGP-3650T AGP-3600T-D81 AGP-3600T-FN1M AGP-3600T-CA1M AGP-3750T LT-3201A LT-3300L LT-3300S LT-3301L PS-3651A PS-3650A PS-3700A PS-2000B PS-3450A PS-3451A PS-3710A PS-3711A APL-3000B Support No No Yes Yes Yes No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes Yes No No No No Yes Yes Yes Yes Yes Yes Yes Yes Yes

AGP-33** Series

AGP-34** Series AGP3000 Series

AGP-35** Series

AGP-36** Series

AGP-37** Series LT-32** Series LT3000 Series LT-33** Series

IPC Series (PC/AT)

PS Series

PL Series

Copyright 2008 Pro-face Europe B.V Manual

4 of 24

Series IPC Series (PC/AT)

Part Number PC/AT AST-32** Series

AST3000 Series

AST-33** Series AST-34** Series AST-35** Series

Support PC/AT AST-3201A(SIO) AST-3211A(MPI) AST-3301B AST-3301S AST-3401T AST-3501C AST-3501T

Series Yes No No No No No No No

1) When WinGP and TwinCat are running on the same PC, the Microsoft Loopback adapter have to be installed.

1.2 Supported Screen Editor Software

This lists which software supports this driver

Software GP-Pro EX Version V2.10.000 or before V2.20.000 or later Version V1.00.000 or later Support Yes Support No Yes Comments Comments

Software Pro-Server EX

2 Connection Configuration

[n to m] via Ethernet (TCP/IP) AGP AGP AGP

HUB

Ethernet Network (TCP/IP)

PC with TwinCAT PLC Control Embedded PC Bus Terminal Controller

NOTE: Max. 16 Targets are supported. Copyright 2008 Pro-face Europe B.V Manual 5 of 24

2.1 Cable Diagrams

Use standard Ethernet TCP/IP connection cable.

3 Selection of External Device

Please select in the field Device/PLC as Maker "Beckhoff Automation GmbH" and as Driver "TwinCAT ADS/AMS".

4 Communication settings

4.1 AGP Settings

To communicate with PLC's by ADS/AMS protocol, TCP/IP Port 48898 [0xBF02] is used as default. (And only port). For ADS/AMS communication, each device should have AMS Net ID and ADS Port number. AMS Net ID: AMS Net ID consists of 6 bytes and addresses the transmitter or receiver. AMS Net ID is purely logical and has usually no relation to the IP Address. By default, it is IP Address plus "1.1" for the last 2 bytes.

Copyright 2008 Pro-face Europe B.V Manual

6 of 24

ADS Port No.: AMS Port of the station for which the packet is intended. PLC BC9000 Port No 800 801 811 821 831 Comment This is the only one Port used for ADS. Run Time System 1 Run Time System 2 Run Time System 3 Run Time System 4

Embedded PC/IPC

4.2 Device / PLC Settings

Bus Terminal PLC Embedded PC/IPC

Copyright 2008 Pro-face Europe B.V Manual

7 of 24

4.3Offline Settings

4.3.1 Middle Size Offline Screen [Communication Setting] (Ethernet)

[Device / PLC Setting]

Copyright 2008 Pro-face Europe B.V Manual

8 of 24

4.3.2 Large Size Offline Screens [Communication Setting] (Ethernet)

[Device / PLC Setting]

Copyright 2008 Pro-face Europe B.V Manual

9 of 24

5 Supported Device

5.1 Bus Terminal

Device Input Relay Output Relay Internal Relay Bit Address %IX0.0 ­ %IX65535.7 %QX0.0 ­ %QX65535.7 %MX0.0 ­ %MX65535.7 %DX0 - %DX16777215 Word Address %IW0 ­ %IW65534 %QW0 ­ %QW65534 %MW0 ­ %MW65534 %DW0 ­ %DW16777214 L/H 32bits Group Index Bit address Word address 0x0000 F021 0x0000 F031 0x0000 4021 0x0000 4040 0x0000 F020 0x0000 F030 0x0000 4020 0x0000 4040

Data

: System Area Start Address can be selected from this area

5.2 Embedded PC and/or IPC

For Embedded PC and/or IPC, there is no range and Device Information to specify. Since, Symbol Name is being used for this Model, symbol names must be imported before using them with GP PRO EX.

5.3 Internal Device Codes and Address Data for the Redirect Feature

Bus Terminal:

Device Input Output Marker Device Name %I %Q %M Device Code 0x0001 0x0002 0x0003 Device Type Discrete Discrete Discrete Access Size 8 8 8 32Bits L/H L/H L/H L/H Address Data 0x00000000 0x0000FFFF 0x00000000 0x0000FFFF 0x00000000 0x0000FFFF Comment

Copyright 2008 Pro-face Europe B.V Manual

10 of 24

6 Address Settings

6.1 Bus Terminal Controller

Word Address:

Bit Address:

Copyright 2008 Pro-face Europe B.V Manual

11 of 24

6.2 Embedded PC / IPC

Expanded stuctures display all contained elements where unusable types are greyed out.

Copyright 2008 Pro-face Europe B.V Manual

12 of 24

7 TPY File Import

Settings in the software GPPRO EX

Note: For a new Project there will be no TPY file. If existing project is opened, the used TPY File name is displayed. By clicking "Import" button, symbols are imported and saved. With Edit button, Symbol List dialog is displayed with existing symbols. And further symbols can be imported or any existing symbols can be deleted. If button "NEW" is clicked, then the "Symbol List" dialog is displayed.

Copyright 2008 Pro-face Europe B.V Manual

13 of 24

User can import the symbols from TPY File by clicking "Import" button. The used TPY File name is displayed as Tag Data Name. The imported symbols are displayed with Data Type. When "Import" button is clicked, user can select the TPY file from which symbols have to be imported.

Copyright 2008 Pro-face Europe B.V Manual

14 of 24

If any symbol name or element name in structure is exceeds the maximum symbol name size (255), those symbols are not imported and error message will be displayed. The imported Symbols are displayed.

Copyright 2008 Pro-face Europe B.V Manual

15 of 24

Initially all symbols are displayed. If user wants to have seen for particular type of Data Type, the desired data type can be selected from "Show" combo box and the selected data type symbols are displayed.

Copyright 2008 Pro-face Europe B.V Manual

16 of 24

It is possible to delete one or more imported symbols by "Delete" button. When OK is selected, the imported symbols are saved. When Cancel is selected, imported symbols or changes are discarded. Important Note · Maximum of 255 User Defined Data type symbol can be used. This includes ARRAY type. Since ARRAY is treated as User Defined Data Type in TwinCAT PLC. · Already imported variables will not be deleted even if they are not included in the used tpy file anymore. · The size of an ARRAY will not be updated if an ARRAY with that name already exists. · When importing a different tpy file variables which are not contained in the new one will be deleted and set to undefined.

7.1Device Address Dialog

The Address dialog is displayed based on PLC Model. When PLC model is set to Embedded PC/IPC, the following dialog will be displayed. The dialog initially shows a list of the "root" symbols same as in TwinCAT PLC Input assistance.

Copyright 2008 Pro-face Europe B.V Manual

17 of 24

The full address name is shown in the text box at the top. When ARRAY Symbol is selected, the Array information is displayed in the bottom 3 Numeric Up Down controls. Bit Combo box is available when BIT Device Type is used and the selected symbol is not a BOOL device type. Each Symbol Data Type property can be seen from the "ToolTip" message that appears when the mouse is moved over the symbol.

If the selected Symbol is user defined or structure, by double clicking or clicking `+', its sub element can be seen. When ARRAY is selected,

For Bit Device,

Copyright 2008 Pro-face Europe B.V Manual

18 of 24

IMPORTANT NOTE: It is not possible to assign other than Standard Data type as Device Address in GP PRO EX. It has to be a Standard Data Type. For example, if user try to select element in structure which is another structure, it is not possible to assign this element as Device Address. User has to select sub element from the child structure. Please note that ENUM, ALIAS and SUB-RANGE User defined data types are not supported.

Copyright 2008 Pro-face Europe B.V Manual

19 of 24

7.2 Device Code Structure

How imported symbols are used with Device Code and Device Item is explained here.

Device Code Used for Symbols: Device Code 0x01 0x02 0x03 0x04 0x05 0x06 Standard Type Symbol

Used For 65535 255 255

Range

User Defined Type Symbols (3 or Less Nested Levels) User Defined Type Symbols (4 or More Nested Levels)

(Maximum of 6 nested levels possible)

3 Dimensional Array 2 Dimensional Array 1 Dimensional Array

[255,255,255] [4095,4095] [16777215]

Device Item for Standard Data Type: Standard Data Symbols are stored in Symbol Table. First imported symbol are stored at entry 1 and second symbol at entry 2 and so on. These symbols are using DEVICE CODE 0x01. And each symbol is addressed via Word Address part of Device Item. First symbol in Symbol Table uses Word Address `0' and second symbol uses `1'. For example, if 5 symbol names are imported of all Standard Data Type, Word Address range becomes 0 ~ 4. No. 1 2 3 4 5 Name SYMBOL_AAAA SYMBOL_BBBB SYMBOL_CCCC SYMBOL_DDDD SYMBOL_EEEE Data Type BOOL WORD DWORD LWORD INT Device Code Device Address 0x0000 0x0001 0x0002 0x0003 0x0004

0x01

When SYMBOL_DDDD is used as Device Address, it is stored in Device Item with Device Code ­ 0x01 and Device Address ­ 0x00000004. Based on the Data Type, Device Item's Access Size, Flag are set.

Copyright 2008 Pro-face Europe B.V Manual

20 of 24

Device Item for User Defined Data Type: For Example, when a user defined structure is imported from TPY file Device Address dialog looks like

It has more than 3 levels of sub structures. The Device Code 0x03 is used. And the address is calculated as below. F Flags L/H 8 7 Access Size Spare D Device Code : 0x03 Word Address Byte 2 Byte 1 0x10 0x00 0 Bit Position

Byte 3 0x00

Byte 0 0x00

Copyright 2008 Pro-face Europe B.V Manual

21 of 24

8 Runtime Error Messages

Error messages are displayed on the Display screen as follows: "No.: Device Name: Error Message (Error Occurrence Area)". Each description is shown below. Item No. Device Name Error Message Error Occurrence Area Error No. Name of the External Device where error occurs. Device name is a title of the External Device set with GP-Pro EX. (Initial value [PLC1]) Displays messages related to the error which occurs. Displays IP address or device address of the External Device where error occurs, or error codes received from the External Device. NOTE: · IP address is displayed such as "IP address(Decimal): MAC address( Hex)". · Device address is diplayed such as "Address: Device address". · Received error codes are displayed such as "Decimal[Hex]". Description

Display Examples of Error Messages "RHAA035: PLC1: Error has been responded for device write command (Error Code: 2 [02H])"

NOTE: · Refer to your External Device manual for details on received error codes.

· Refer to "When an error is displayed (Error Code List)" in "Maintenance/Troubleshooting Manual" for details on the error messages common to the driver.

The following list is just for your convenience. For the latest list please see above note.

ID

0x08 RHxx008 0x0a RHxx010 0x0b RHxx011 0x0c RHxx012 0x21 RHxx033 0x22 RHxx034

Message

Cause and Solution

Comment

(Driver Name): This machine does not have any Ethernet The machine is not support Ethernet. For Ethernet Driver interface (ex. AGP3301) (Driver Name): TCP port number (%d) is overlapped, or it is TCP port number is overlapped. not completed to close the last TCP connection (Driver Name): Connection was closed

For Ethernet Driver

An error occurred in the connection For Ethernet Driver environment durring communication. UDP port number is overlapped. For Ethernet Driver

(Driver Name): UDP Port number is overlapped

(Node Name): Error has been responded for initial communication command (Error Code: (Decimal)[(Hex)])

(Node Name): Error has been responded for device read Received the error code from PLC. command (Error Code: (Decimal)[(Hex)]) Please check the error code.

0x23 RHxx035

(Node Name): Error has been responded for device write command (Error Code: (Decimal)[(Hex)])

Copyright 2008 Pro-face Europe B.V Manual

22 of 24

0x24 RHxx036

(Node Name): Error has been responded for device read command (Error Code: (Decimal)[(Hex)] There are out of Received the error code from PLC.The range devises) error code mean address over range error. Please check the error code and (Node Name): Error has been responded for device write screen data. command (Error Code: (Decimal)[(Hex)] There are out of range devises) Received the error code from PLC.The error code mean Write Only Area (Node Name): Error has been responded for device read exists. command (Error Code: (Decimal)[(Hex)] There are write only devises) Please check the error code and screen data. Received the error code from PLC.The error code mean Read Only Area (Node Name): Error has been responded for device write exists. command (Error Code: (Decimal)[(Hex)] There are read only devises) Please check the error code and screen data. (Node Name): Illegal response for initial communication command Receive unknown command.

0x25 RHxx037

0x26 RHxx038

0x27 RHxx039

0x28 RHxx040 0x29 RHxx041 0x2a RHxx042 0x31 RHxx049 0x32 RHxx050 0x33 RHxx051

(Node Name): Illegal response for device read command

(Node Name): Illegal response for device write command Wrong device and address are created via Indirect Address Designation. Wrong device and address are created via Indirect Address Designation.

(Node Name): Unknown devices exist in read devices

(Node Name): Unknown devices exist in write devices

(Node Name): Out of range devices exist in read devices (Address: (Device Address))

The address is over ranged. Please check the screen data.

0x34 RHxx052

(Node Name): Out of range devices exist in write devices (Address: (Device Address))

0x35 RHxx053

Read the Write only device. (Node Name): You cannot read the write only device (Address: (Device Address)) Please check the screen data and Indirect Address Designation. Read to the Read only device. (Node Name): You cannot write the read only device (Address: (Device Address)) Please check the screen data and Indirect Address Designation. (Node Name): TCP connection open error (IP Address: (IP Cannot connect to PLC. No IP addess For Ethernet Driver Address)) on network or setting is not correct. (Node Name): UDP target not found (IP Address: (IP Cannot connect to PLC. Address)) (Node Name): Response timed out for initial communication command No reply from PLC. (Node Name): Response timed out for device read command Please check the cable, setting and power of PLC. (Node Name): Response timed out for device write command

0x36 RHxx054 0x41 RHxx065 0x42 RHxx066 0x43 RHxx067 0x44 RHxx068 0x45 RHxx069

For Ethernet Driver

Copyright 2008 Pro-face Europe B.V Manual

23 of 24

0x48 RHxx072

(Node Name): Since a buffer was insufficient, the read Read request to the node that is Runtime/Pro-Server request was un-receivable offscan mode will display.

EX

0x49 RHxx073

(Node Name): Since a buffer was insufficient, the write Write request to the node that is Runtime/Pro-Server request was un-receivable offscan mode will display.

EX

0x53 RHxx083 0x54 RHxx084 0x55 RHxx085

(Node Name): Socket Error (Error Code: (Decimal)[(Hex)])

Ethernet socket error..

For Ethernet Driver

(Node Name): Too many requests to write. The request was Too many write requests. The pool for Runtime/Pro-Server ignored. request is overflowed. will display.

EX

(Node Name): Too many requests to read. The request was Too many read requests. The pool for Runtime/Pro-Server ignored. request is overflowed. will display.

EX

Copyright 2008 Pro-face Europe B.V Manual

24 of 24

Information

Twincat ADS-AMS Driver Manual

24 pages

Report File (DMCA)

Our content is added by our users. We aim to remove reported files within 1 working day. Please use this link to notify us:

Report this file as copyright or inappropriate

918071


Notice: fwrite(): send of 199 bytes failed with errno=104 Connection reset by peer in /home/readbag.com/web/sphinxapi.php on line 531