WAGO WAGO-I/O-SYSTEM 750, 750-655 Series Manual

Fieldbus Independent I/O Modules
AS-Interface master module 750-655
Manual
ii • General
Copyright 2007 by WAGO Kontakttechnik GmbH & Co. KG All rights reserved.
WAGO Kontakttechnik GmbH & Co. KG
Hansastraße 27 D-32423 Minden
Phone: +49 (0) 571/8 87 – 0 Fax: +49 (0) 571/8 87 – 1 69
E-Mail: info@wago.com
Web: http://www.wago.com
Technical Support
Phone: +49 (0) 571/8 87 – 5 55 Fax: +49 (0) 571/8 87 – 85 55
E-Mail: support@wago.com
Every conceivable measure has been taken to ensure the correctness and com­pleteness of this documentation. However, as errors can never be fully ex­cluded, we would appreciate any information or ideas at any time.
E-Mail: documentation@wago.com
We wish to point out that the software and hardware terms as well as the trademarks of companies used and/or mentioned in the present manual are generally trademark or patent protected.
WAGO-I/O-SYSTEM 750 I/O Modules
Table of Contents • iii
Table of Contents
1 Important Comments ................................................................................. 6
1.1 Legal Principles........................................................................................6
1.1.1 Copyright ............................................................................................. 6
1.1.2 Personnel Qualification ....................................................................... 6
1.1.3 Intended Use ........................................................................................ 6
1.2 Symbols .................................................................................................... 7
1.3 Number Notation......................................................................................7
1.4 Safety Notes ............................................................................................. 8
1.5 Scope ........................................................................................................8
2 I/O Modules .................................................................................................9
2.1 Special Modules ....................................................................................... 9
2.1.1 750-655 [AS-Interface master module]...............................................9
2.1.1.1 View................................................................................................9
2.1.1.2 Description......................................................................................9
2.1.1.3 Indicating devices .........................................................................13
2.1.1.4 Schematic circuit diagram............................................................. 14
2.1.1.5 Technical data ............................................................................... 15
2.1.1.6 Functional description................................................................... 16
2.1.1.6.1 Start-up behavior......................................................................16
2.1.1.6.1.1 Offline phase ....................................................................... 16
2.1.1.6.1.2 Detection phase ................................................................... 16
2.1.1.6.1.3 Activation phase .................................................................. 17
2.1.1.6.1.4 Normal mode ....................................................................... 17
2.1.1.6.2 Slave lists ................................................................................. 17
2.1.1.6.3 Operating modes ...................................................................... 17
2.1.1.6.3.1 Set-up mode.........................................................................17
2.1.1.6.3.2 Protected operating mode.................................................... 18
2.1.1.6.4 Addressing in set-up mode.......................................................19
2.1.1.6.5 Addressing in the case of configuration errors ........................19
2.1.1.6.5.1 Automatic addressing .......................................................... 19
2.1.1.6.5.2 Manual addressing............................................................... 20
2.1.1.7 Process image................................................................................ 21
2.1.1.7.1 Overview .................................................................................. 21
2.1.1.7.2 Control and status byte.............................................................25
2.1.1.7.2.1 Assignment for process data communication...................... 25
2.1.1.7.2.2 Assignment for register communication .............................26
2.1.1.7.3 AS-Interface process data ........................................................27
2.1.1.7.3.1 AS-Interface flags................................................................ 28
2.1.1.7.4 Mailbox ....................................................................................28
2.1.1.7.4.1 Structure .............................................................................. 29
2.1.1.7.4.2 Access procedure.................................................................30
2.1.1.8 Mailbox commands....................................................................... 31
2.1.1.8.1 Overview of mailbox commands .............................................31
2.1.1.8.2 Result values of mailbox commands........................................ 33
2.1.1.8.3 Example of mailbox use...........................................................33
WAGO-I/O-SYSTEM 750 I/O Modules
iv • Important Comments Legal Principles
2.1.1.9 Data channel for parameter exchange...........................................36
2.1.1.9.1 Introduction .............................................................................. 36
2.1.1.9.2 Register structure ..................................................................... 36
2.1.1.9.2.1 Parameter data (Register 56) ............................................... 36
2.1.1.9.2.2 Communications control (Register 57) ...............................37
2.1.1.9.3 Parameter sets........................................................................... 38
2.1.1.9.3.1 General parameter data (system parameter range) .............. 38
2.1.1.9.3.2 Bus module-specific parameter data ...................................39
2.1.1.9.4 Parameter transmission process ...............................................39
2.1.1.9.4.1 Determining the maximum bus module parameter data
(system parameters).............................................................39
2.1.1.9.4.2 Setting the monitoring time (system parameters)................ 40
2.1.1.9.4.3 Restoring factory settings (system parameters)................... 40
2.1.1.9.4.4 Reading/writing parameters (module-specific) ................... 41
2.1.1.9.4.5 Example: Configuring AS-Interface process data and
mailbox ................................................................................ 42
2.1.1.10 Extended diagnostics of the AS-Interface master.........................43
2.1.1.10.1 List of AS-Interface slaves, which have initiated configuration
errors (LCS).............................................................................. 43
2.1.1.10.2 Protocol analysis: Counter for transmission errors for data
telegrams ..................................................................................43
2.1.1.10.3 Offline phase in the case of configuration errors.....................43
2.1.2 Node Design ......................................................................................45
2.1.2.1 Grouping of AS-Interface Master Modules ..................................45
3 Working with the AS-Interface master module 750-655....................... 46
3.1 Set up and configuration with WAGO-I/O-CHECK 2........................... 46
3.1.1 Setting up the AS-Interface process data and mailbox length........... 46
3.1.2 Setting up the operating mode for the AS-Interface master .............. 47
3.1.3 Including a new slave in the AS-Interface network ..........................47
3.1.4 Selecting an AS-Interface slave from the slave overview................. 48
3.1.5 Configuring an AS-Interface slave .................................................... 48
3.1.6 Observing and setting up AS-Interface process data......................... 49
3.1.7 AS-Interface diagnostics.................................................................... 49
4 Fieldbus-specific behavior........................................................................ 50
4.1 CANopen................................................................................................ 50
4.1.1 Accessing the process image ............................................................. 50
4.1.1.1 Example ........................................................................................ 53
4.2 DeviceNet............................................................................................... 55
4.2.1 Accessing the process image ............................................................. 55
4.2.1.1 Example ........................................................................................ 55
4.3 ETHERNET ........................................................................................... 57
4.3.1 Modbus protocol................................................................................ 57
4.3.1.1 Accessing the process image ........................................................ 57
4.3.1.1.1 Example.................................................................................... 57
4.3.2 ETHERNET IP protocol.................................................................... 59
4.3.2.1 Accessing the process image ........................................................ 59
4.3.2.1.1 Example.................................................................................... 59
WAGO-I/O-SYSTEM 750 I/O Modules
Table of Contents • v
4.4 PROFIBUS DP....................................................................................... 61
4.4.1 Accessing the process image ............................................................. 61
4.4.1.1 Example ........................................................................................ 61
4.5 LON........................................................................................................ 64
5 Appendix .................................................................................................... 65
5.1 Overview of mailbox commands............................................................ 65
5.2 Overview of mailbox commands sorted by function ............................. 67
5.3 Overview of mailbox commands sorted by opcode ...............................69
5.4 Overview of mailbox commands sorted by value ..................................71
5.5 Mailbox command - Reference.............................................................. 73
5.5.1 Mailbox commands ........................................................................... 73
5.5.2 Functional profiles........................................................................... 126
WAGO-I/O-SYSTEM 750 I/O Modules

6 Important Comments Legal Principles

1 Important Comments
To ensure fast installation and start-up of the units described in this manual, we strongly recommend that the following information and explanations are carefully read and abided by.
1.1 Legal Principles
1.1.1 Copyright
This manual is copyrighted, together with all figures and illustrations contained therein. Any use of this manual which infringes the copyright provisions stipulated herein, is not permitted. Reproduction, translation and electronic and photo-technical archiving and amendments require the written consent of WAGO Kontakttechnik GmbH & Co. KG. Non-observance will entail the right of claims for damages.
WAGO Kontakttechnik GmbH & Co. KG reserves the right to perform modifications allowed by technical progress. In case of grant of a patent or legal protection of utility patents all rights are reserved by WAGO Kontakttechnik GmbH & Co. KG. Products of other manufacturers are always named without referring to patent rights. The existence of such rights can therefore not be ruled out.
1.1.2 Personnel Qualification
The use of the product detailed in this manual is exclusively geared to specialists having qualifications in PLC programming, electrical specialists or persons instructed by electrical specialists who are also familiar with the valid standards. WAGO Kontakttechnik GmbH & Co. KG declines all liability resulting from improper action and damage to WAGO products and third party products due to non-observance of the information contained in this manual.
1.1.3 Intended Use
For each individual application, the components supplied are to work with a dedicated hardware and software configuration. Modifications are only permitted within the framework of the possibilities documented in the manuals. All other changes to the hardware and/or software and the non­conforming use of the components entail the exclusion of liability on part of WAGO Kontakttechnik GmbH & Co. KG.
Please direct any requirements pertaining to a modified and/or new hardware or software configuration directly to WAGO Kontakttechnik GmbH & Co. KG.
WAGO-I/O-SYSTEM 750 I/O Modules

Important Comments • 7 Symbols

1.2 Symbols
Danger Always abide by this information to protect persons from injury.
Warning Always abide by this information to prevent damage to the device.
Attention Marginal conditions must always be observed to ensure smooth operation.
ESD (Electrostatic Discharge) Warning of damage to the components by electrostatic discharge. Observe the precautionary measure for handling components at risk.
Note Routines or advice for efficient use of the device and software optimization.
More information References on additional literature, manuals, data sheets and INTERNET pages
1.3 Number Notation
Number Code Example Note
Decimal 100 normal notation
Hexadecimal 0x64 C notation
Binary '100'
'0110.0100'
Within ', Nibble separated with dots
WAGO-I/O-SYSTEM 750 I/O Modules
8 Important Comments Safety Notes
1.4 Safety Notes
Warning Switch off the system prior to working on bus modules!
In the event of deformed contacts, the module in question is to be replaced, as its functionality can no longer be ensured on a long-term basis.
The components are not resistant against materials having seeping and insulating properties. Belonging to this group of materials is: e.g. aerosols, silicones, triglycerides (found in some hand creams).
If it cannot be ruled out that these materials appear in the component environment, then additional measures are to be taken:
- installation of the components into an appropriate enclosure
- handling of the components only with clean tools and materials.
Attention Cleaning of soiled contacts may only be done with ethyl alcohol and leather cloths. Thereby, the ESD information is to be regarded.
1.5 Scope
Do not use any contact spray. The spray may impair the functioning of the contact area.
The WAGO-I/O-SYSTEM 750 and its components are an open system. It must only be assembled in housings, cabinets or in electrical operation rooms. Access must only be given via a key or tool to authorized qualified personnel.
The relevant valid and applicable standards and guidelines concerning the installation of switch boxes are to be observed.
ESD (Electrostatic Discharge) The modules are equipped with electronic components that may be destroyed by electrostatic discharge. When handling the modules, ensure that the environment (persons, workplace and packing) is well grounded. Avoid touching conductive components, e.g. gold contacts.
This manual describes the Special Module 750-655 AS-Interface master module of the modular WAGO-I/O-SYSTEM 750.
Handling, assembly and start-up are described in the manual of the Fieldbus Coupler. Therefore this documentation is valid only in the connection with the appropriate manual.
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 9 View
2 I/O Modules
2.1 Special Modules

2.1.1 750-655 [AS-Interface master module]

2.1.1.1 View
Fig. 2.1.1-1: View g065500e
2.1.1.2 Description
The AS-Interface master module 750-655 is used to integrate the AS-Interface network into the WAGO-I/O-SYSTEM 750. By this means, AS-Interface slaves or subsystems, together with modules from the WAGO-I/O-SYSTEM 750, can be used in widely differing field bus systems.
The AS-Interface master module 750-655 behaves as a master for the AS­Interface and as a slave for the field bus.
It already complies with the new AS-Interface specification 2.1. This means that:
up to 62 AS-Interface slaves can be connected to the master,
the transmission of analog values is integrated within the masters and
all other functions of the new specification, such as the evaluation of
peripheral errors, are also implemented.
WAGO-I/O-SYSTEM 750 I/O Modules
10 • 750-655 [AS-Interface master module]
Description
Fig. 2.1.1-2: Overview of the AS-Interface network p065501e
The AS-Interface functions are made available acyclically and the AS­Interface process data are made available both cyclically and acyclically over the field bus.
In cyclical data exchange, up to 32 bytes of I/O data (resettable) are transmitted for the binary data of the AS-Interface strand.
In addition, analog values, and also all other commands of the new AS­Interface specification, can be transmitted acyclically in a management channel over the field bus.
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 11 Description
Diagnostics functions, which go well beyond the AS-Interface specification, enable intermittent configuration errors and sources of interference on the AS­Interface communication to be easily localized. In this way, the downtimes of systems can be minimized in the case of a fault and preventative maintenance measures can be implemented.
LEDs signal the readiness for operation and the fault-free module bus communication as well as the status of the signal transmission.
The AS-Interface master module 750-655 can be used with the following WAGO-I/O-SYSTEM 750 couplers/controllers:
Bus system Coupler / Controller Item No.
Profibus
DeviceNet
CANopen
ETHERNET
Fieldbus coupler
ECO fieldbus coupler 750-343 03 from 06
Programmable fieldbus controller 750-833 12 from 07
Fieldbus coupler 750-306 11 4I
ECO fieldbus coupler 750-346 02 07
Programmable fieldbus controller 750-806 02 07
Programmable fieldbus controller
750-301 01 07
750-303 01 07
750-333 12 from 07
750-337 09 10 Fieldbus coupler
750-338 01 14
750-347 01 04 ECO fieldbus coupler
750-348 01 04
750-837 06 11
750-838 01 11
750-341 03 03 Fieldbus coupler
Hardware version
Software version
IPC WAGO-IPC 750-870 02 IPC-
Further couplers/controllers on request.
WAGO-I/O-SYSTEM 750 I/O Modules
750-342 04 14
Programmable fieldbus controller
Fieldbus coupler 750-319 07 05 LON
Programmable fieldbus controller 750-819 08 07
750-841 03 07
750-842 04 12
Firmware
02.04. 18/0200 Kbus­Firmware
01.02. 03(06)
12 • 750-655 [AS-Interface master module]
Description
The version number is included in the fabrication number, which is printed on the right-hand side of the bus module.
Note
A maximum of three AS-Interface master modules can be incorporated into one fieldbus node. If it is intended to install two or three master modules in direct vicinity to each other in one node, it is essential to observe the node design acc. to chapter 2.1.2.1 „Grouping of AS-Interface Master Modules“.
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 13 Indicating devices
2.1.1.3 Indicating devices
LED Designation State Function
24 V - power AS-interface­power
Mapping consistency
K-Bus timeout
overflow
Fig. 2.1.1-3: Indicating devices
13 14
AS-interface active
prg enable
cfg mode
cfg error
g065502e
Power
green
AS-Interface power
green
red
Mapping consistency
Internal bus timeout
red overflow
green
AS-Interface active
green prg enable
off 24 V supply fault or
AS-Interface supply fault
on 24 V supply OK and
AS-Interface supply OK
off AS-Interface incomplete on internal bus
(mapping)
on AS-Interface complete on internal bus
off Communication to coupler/controller
OK
on Communication to coupler/controller
interrupted
off AS-Interface complete on internal bus
on AS-Interface incomplete on internal bus
(timing)
off AS-Interface not active
on AS-Interface active
off No automatic programming possible /
necessary
on A slave is missing and can be replaced
by automatic programming
yellow cfg mode
off Protected operating mode
on Set-up mode
off No fault
red general fault
flashing Peripheral fault
on Configuration error (Config Error Bit)
or at least one of the status bits 1 or 2
WAGO-I/O-SYSTEM 750 I/O Modules
14 • 750-655 [AS-Interface master module]
Schematic circuit diagram
2.1.1.4 Schematic circuit diagram
Fig. 2.1.1-4: Schematic circuit diagram g065501e
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 15 Technical data
2.1.1.5 Technical data
Module-specific data
AS-Interface specification 2.1
Number of slaves up to 62
Current consumption (AS­Interface)
Supply voltage (AS-Interface) 26.5 V ... 31.6 V
AS-Interface cable length max. 100 m, with repeater 300 m
Cycle time AS-Interface 0.3 ms ... 10 ms, depending on number of slaves
Configuration
Transmission channel 1
Current consumption max. (internal) 55 mA
Supply voltage DC 24 V via power contacts
Potential isolation 500 V system / supply / AS-Interface connection point
Data width 12 ... 48 bytes max. freely configurable,
Dimensions (mm) W x H x L 12 x 64* x 100
Weight ca. 70 g
Norms and Directives (cf. Chapter 2.2 in manual for coupler/controller)
EMC Immunity to interference CE according to EN 61000-6-2 (1996), EN 50295 (1999)
40 mA
via process image, WAGO-I/O-CHECK 2 or AS-Interface mode contacts
including 1 byte control / status
* from upper edge of mounting rail DIN 35
EMC Emissions of interference CE
Approvals (cf. Chapter 2.2 in manual for coupler/controller)
(UL508)
CULUS
Conformity Marking
according to EN 61000-6-4 (2001)
More Information Detailed references to the approvals are listed in the document "Overview Approvals WAGO-I/O-SYSTEM 750", which you can find on the CD ROM ELECTRONICC Tools and Docs (Item-No.: 0888-0412) or in the internet under:
www.wago.com ! Documentation ! WAGO-I/O-SYSTEM 750 !
System Description
WAGO-I/O-SYSTEM 750 I/O Modules
16 • 750-655 [AS-Interface master module]
Functional description
2.1.1.6 Functional description
2.1.1.6.1 Start-up behavior
After switching on, all LEDs illuminate as part of a self test. Following this, the LEDs indicate the status of the respective flags. On start-up, the AS­Interface master module runs through the following phases:
Offline phase
Detection phase
Activation phase
Data exchange phase
Management phase
Acquisition phase
Initialisation
Start-up mode
Normal mode
Fig. 2.1.1-5: Start-up behavior g065503e
2.1.1.6.1.1 Offline phase
The master module is initialized; there is no exchange of data with the slaves.
Note
The master module will remain in the offline phase if the AS-Interface circuit is not adequately supplied with power (U AS-I does not come on).
The offline phase can be exited in start-up mode or when the WAGO-I/O- CHECK 2 commissioning tool starts automatically.
2.1.1.6.1.2 Detection phase
Beginning of start-up operation, in which a search is carried out for slaves present on the AS-Interface. The master module remains in the detection phase until at least one slave has been detected.
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 17 Functional description
2.1.1.6.1.3 Activation phase
State at the end of the start-up mode, in which the parameters of all the connected and detected slaves are transmitted. At this point, access is enabled to the data connections in the slaves. Depending on the operating mode, either all detected and set-up slaves are activated (protected mode of operation) or all detected slaves are activated (set-up mode).
2.1.1.6.1.4 Normal mode
In the normal mode, the master module exchanges data with all active slaves (data exchange phase), transmits management telegrams (telegrams from and to the host, management phase) and searches for and activates newly connected slaves (acquisition phase).
2.1.1.6.2 Slave lists
Information on available or set-up slaves is stored in the master in the form of lists.
Set-up mode
LDS LAS
detected active projected active
Fig. 2.1.1-6: Slave lists g065504e
The list of detected slaves (LDS) includes all slaves, which the master detects in the AS-Interface circuit and which have a valid address.
The list of projected slaves (LPS) includes all slaves, which the master expects in the AS-Interface circuit as a result of the set-up.
The list of active slaves (LAS) includes all slaves with which the master exchanges data. In the set-up mode, this list corresponds to the LDS list and, in protected mode, it corresponds to the LPS list.
2.1.1.6.3 Operating modes
2.1.1.6.3.1 Set-up mode
Protected mode
LPS
LAS
The set-up mode is used for configuring the AS-Interface circuit.
Note
In the set-up mode, all detected slaves are activated even when there are
WAGO-I/O-SYSTEM 750 I/O Modules
differences between the required and actual configuration.
18 • 750-655 [AS-Interface master module]
Functional description
The master module is switched to set-up mode by short-circuiting the mode contacts M1 and M2 for at least five seconds. The yellow "prj mode" LED illuminates in set-up mode. In set-up mode, all detected slaves, with the exception of slave zero, are activated. The master module is in normal mode. Data is exchanged between the master module and all detected slaves regardless of whether the detected slaves have already been set up.
Note
The AS-Interface master module is supplied from the factory in set-up mode.
2.1.1.6.3.2 Protected operating mode
The master module is switched from set-up mode to protected mode by short­circuiting the mode contacts M1 and M2.
Brief short-circuit:
The master module switches from set-up mode to protected mode without setting up the current actual configuration as a required configuration.
Short-circuiting for longer than five seconds:
The master module switches from set-up mode to protected mode. At the same time, the actual configuration is stored in the module as a required configuration.
Note
If a slave with the address zero is detected on the AS-Interface, it will not be possible to exit the set-up mode.
Note
In protected mode, only those slaves are activated, which have been set up and the required configuration of which matches the actual values.
Note
In contrast to the set-up mode, in protected mode, data is only exchanged between the master module and the slaves that have been set-up.
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 19 Functional description
2.1.1.6.4 Addressing in set-up mode
AS-Interface systems on the master module can be commissioned with the WAGO-I/O-CHECK 2 commissioning tool. The procedure is described in Chapter Fehler! Verweisquelle konnte nicht
gefunden werden. "Fehler! Verweisquelle konnte nicht gefunden werden.".
Commissioning can also be carried out using an addressing unit.
2.1.1.6.5 Addressing in the case of configuration errors
2.1.1.6.5.1 Automatic addressing
One of the great advantages of the AS-Interface is the automatic address programming. If a slave fails due to a defect, it can be replaced by a physically identical slave with the address zero. The master module detects this and automatically addresses the new slave with the address of the defective slave.
The following requirements must be satisfied for automatic programming:
The master module must be in protected mode.
The enable flag "Auto_prog" must be set.
Only one of the set-up slaves must be undetected.
The new slave must have the same configuration data as the missing slave.
When these conditions are satisfied, the master module indicates this with the "prg enable" LED. If a slave is then detected with the address zero, it will automatically be reprogrammed with the address of the missing slave. The "Auto_prog" flag for automatic programming can be switched on and off with the WAGO-I/O-CHECK 2 commissioning tool.
Note
Only slaves with the address zero can be re-addressed by the master module.
Note
Automatic address programming is not carried out if the two slaves have different configuration data, i.e. are not physically identical from the AS­Interface side.
WAGO-I/O-SYSTEM 750 I/O Modules
20 • 750-655 [AS-Interface master module]
Functional description
2.1.1.6.5.2 Manual addressing
If several slaves have failed, the addresses of the new slaves must be set manually. This can be carried out with the WAGO-I/O-CHECK 2 commissioning tool or an addressing unit.
Note
If several slaves fail, they can no longer be automatically replaced by the master.
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 21 Process image
2.1.1.7 Process image
2.1.1.7.1 Overview
The length of the process image of the AS-Interface master module can be set to fixed sizes of 12, 20, 24, 32, 40 or 48 bytes. It consists of a control or status byte, a mailbox with a size of 0, 6, 10, 12 or 18 bytes and the AS-Interface process data, which can range from 0 to 32 bytes (Mode 1). Alternatively, the mailbox can be set up to overlap, i.e. the mailbox is temporarily superimposed on the AS-Interface process data with a length of 6, 10, 12 or 18 bytes depending on the total length of the process image that has been configured (Mode 2). Register communication is used to set up the module via the parameter channel (Mode 3).
Mode 1 Mode 2.1 Mode 2.2 Mode 3
permanently
configured mailbox
(normal mode)
Control/Status
(1 byte, byte 0)
Internal use
(1 byte, byte 1)
Mailbox
(acyclical data,
0-18 bytes long,
bytes 2 to n)
Process data
(cyclical data,
0-32 bytes long,
bytes n+1 to m)
overlapping mailbox
activated
Control/Status
(1 byte, byte 0)
Internal use
(1 byte, byte 1)
Mailbox
(acyclical data,
6-18 bytes long,
bytes 2 to n)
Process data
(cyclical data, 0-32 bytes long, bytes n+1 to m)
(take validity of data
into account!)
overlapping mailbox
deactivated
Control/Status
(1 byte, byte 0)
Internal use
(1 byte, byte 1)
Process data
(cyclical data,
0-32 bytes long,
bytes 2 to m)
register
communication
Control/Status
(1 byte, byte 0)
Internal use
(1 byte, byte 1)
Register data
(2 bytes, bytes 2 to
3)
Invalid data
(bytes 4 to m)
Changing between Mode 1 (permanently configured mailbox) and Mode 2 (overlapping mailbox) as well as the setting up of the mailbox and process image sizes is carried out with the WAGO-I/O-CHECK 2 commissioning tool or by means of the parameter channel via address 0. The values set are mirrored in Register 33. Mode 3 (register communication) is switched on and off with bit 27 of the control byte. As this mode has a superimposed function, the previously activated Mode 1 or 2 remains active after switching off.
All possible settings relating to the total process image length and mailbox length are listed in the following tables.
WAGO-I/O-SYSTEM 750 I/O Modules
22 • 750-655 [AS-Interface master module]
Process image
In Mode 1, the control/status byte, the mailbox and the cyclical process data are mapped. This is the default setting. When the difference between the process image length and the mailbox length is less than 34 bytes, only the first part of the AS-Interface process data is transmitted; the data for the slaves with the higher addresses are then omitted.
Mode 1 Mailbox length (permanently configured)
Process image length
in control byte = TRUE)
12 byte
20 byte
24 byte
32 byte
40 byte
48 byte
PI offset in bytes
0 Control or status byte 1 Internal use 2 Flags 1/1A Register data (bit 27
3 2/2A 3/3A
4 4/4A 5/5A 5 6/6A 7/7A 6 8/8A 9/9A 7 10/10A 11/11A 8 12/12A 13/13A Flags 1/1A 9 14/14A 15/15A 2/2A 3/3A 10 16/16A 17/17A 4/4A 5/5A 11 18/18A 19/19A 6/6A 7/7A 12 20/20A 21/21A 8/8A 9/9A Flags 1/1A 13 22/22A 23/23A 10/10A 11/11A 2/2A 3/3A 14 24/24A 25/25A 12/12A 13/13A 4/4A 5/5A Flags 1/1A 15 26/26A 27/27A 14/14A 15/15A 6/6A 7/7A 2/2A 3/3A 16 28/28A 29/29A 16/16A 17/17A 8/8A 9/9A 4/4A 5/5A 17 30/30A 31/31A 18/18A 19/19A 10/10A 11/11A 6/6A 7/7A 18 Flags 1B 20/20A 21/21A 12/12A 13/13A 8/8A 9/9A 19 2B 3B 22/22A 23/23A 14/14A 15/15A 10/10A 11/11A 20 4B 5B 24/24A 25/25A 16/16A 17/17A 12/12A 13/13A Flags 1/1A 21 6B 7B 26/26A 27/27A 18/18A 19/19A 14/14A 15/15A 2/2A 3/3A 22 8B 9B 28/28A 29/29A 20/20A 21/21A 16/16A 17/17A 4/4A 5/5A 23 10B 11B 30/30A 31/31A 22/22A 23/23A 18/18A 19/19A 6/6A 7/7A 24 12B 13B Flags 1B 24/24A 25/25A 20/20A 21/21A 8/8A 9/9A 25 14B 15B 2B 3B 26/26A 27/27A 22/22A 23/23A 10/10A 11/11A 26 16B 17B 4B 5B 28/28A 29/29A 24/24A 25/25A 12/12A 13/13A 27 18B 19B 6B 7B 30/30A 31/31A 26/26A 27/27A 14/14A 15/15A 28 20B 21B 8B 9B Flags 1B 28/28A 29/29A 16/16A 17/17A 29 22B 23B 10B 11B 2B 3B 30/30A 31/31A 18/18A 19/19A 30 24B 25B 12B 13B 4B 5B Flags 1B 20/20A 21/21A 31 26B 27B 14B 15B 6B 7B 2B 3B 22/22A 23/23A 32 28B 29B 16B 17B 8B 9B 4B 5B 24/24A 25/25A 33 30B 31B 18B 19B 10B 11B 6B 7B 26/26A 27/27A 34 - - 20B 21B 12B 13B 8B 9B 28/28A 29/29A 35 - - 22B 23B 14B 15B 10B 11B 30/30A 31/31A 36 - - 24B 25B 16B 17B 12B 13B Flags 1B 37 - - 26B 27B 18B 19B 14B 15B 2B 3B 38 - - 28B 29B 20B 21B 16B 17B 4B 5B 39 - - 30B 31B 22B 23B 18B 19B 6B 7B 40 - - - - 24B 25B 20B 21B 8B 9B 41 - - - - 26B 27B 22B 23B 10B 11B 42 - - - - 28B 29B 24B 25B 12B 13B 43 - - - - 30B 31B 26B 27B 14B 15B 44 - - - - - - 28B 29B 16B 17B 45 - - - - - - 30B 31B 18B 19B 46 - - - - - - - - 20B 21B 47 - - - - - - - - 22B 23B
0 byte 6 byte 10 byte 12 byte 18 byte
Mailbox
Mailbox
Mailbox
Mailbox
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 23 Process image
Mode 2 describes the operating mode with suppressible mailbox. If the mailbox flag (bit 25 in the control byte) is set, then the mailbox is imposed over the cyclical data range. The covered range is then no longer valid (the range not covered continues to be updated, however, and can therefore be used). If the mailbox flag is not set, then the mailbox is suppressed and the cyclical data range becomes valid. The required setting is acknowledged by mirroring in bit 25 of the status byte.
Note
The application program must take into account the validity of the data ranges.
Mailbox
Mode 2
Process image length
in control byte = TRUE)
12 byte
20 byte
24 byte
32 byte
40 byte
suppressed (bit 25 in control byte = FALSE)
PI offset in bytes
0 Control or status byte 1 Internal use 2 Flags 1/1A Register data (bit 27
3 2/2A 3/3A
4 4/4A 5/5A 5 6/6A 7/7A 6 8/8A 9/9A 7 10/10A 11/11A 8 12/12A 13/13A 12/12A 13/13A 9 14/14A 15/15A 14/14A 15/15A 10 16/16A 17/17A 16/16A 17/17A 11 18/18A 19/19A 18/18A 19/19A 12 20/20A 21/21A 20/20A 21/21A 20/20A 21/21A 13 22/22A 23/23A 22/22A 23/23A 22/22A 23/23A 14 24/24A 25/25A 24/24A 25/25A 24/24A 25/25A 24/24A 25/25A 15 26/26A 27/27A 26/26A 27/27A 26/26A 27/27A 26/26A 27/27A 16 28/28A 29/29A 28/28A 29/29A 28/28A 29/29A 28/28A 29/29A 17 30/30A 31/31A 30/30A 31/31A 30/30A 31/31A 30/30A 31/31A 18 Flags 1B Flags 1B Flags 1B Flags 1B 19 2B 3B 2B 3B 2B 3B 2B 3B 20 4B 5B 4B 5B 4B 5B 4B 5B 4B 5B 21 6B 7B 6B 7B 6B 7B 6B 7B 6B 7B 22 8B 9B 8B 9B 8B 9B 8B 9B 8B 9B 23 10B 11B 10B 11B 10B 11B 10B 11B 10B 11B 24 12B 13B 12B 13B 12B 13B 12B 13B 12B 13B 25 14B 15B 14B 15B 14B 15B 14B 15B 14B 15B 26 16B 17B 16B 17B 16B 17B 16B 17B 16B 17B 27 18B 19B 18B 19B 18B 19B 18B 19B 18B 19B 28 20B 21B 20B 21B 20B 21B 20B 21B 20B 21B 29 22B 23B 22B 23B 22B 23B 22B 23B 22B 23B 30 24B 25B 24B 25B 24B 25B 24B 25B 24B 25B 31 26B 27B 26B 27B 26B 27B 26B 27B 26B 27B 32 28B 29B 28B 29B 28B 29B 28B 29B 28B 29B 33 30B 31B 30B 31B 30B 31B 30B 31B 30B 31B ... 39
n byte mailbox 6 byte mailbox 10 byte mailbox 12 byte mailbox 18 byte mailbox
Empty
Mailbox imposed (bit 25 in control byte = TRUE)
Mailbox
Mailbox
Mailbox
Mailbox
WAGO-I/O-SYSTEM 750 I/O Modules
24 • 750-655 [AS-Interface master module]
Process image
Mode 3 is reserved for register communication. Bit 27 in the control byte is set to activate register communication. Resetting this bit switches register communication off again. The selected setting is mirrored in bit 27 of the status byte. The register data are superimposed on the PI offset byte 2 and byte 3 over the respective cyclical or acyclical memory range depending on the selected mode.
Note In Mode 3, the mailbox and the process data are basically no longer valid.
Process image length and mailbox length:
The process image length and the mailbox length can be freely set within fixed limits with the limitation that the process image length is greater than the mailbox length plus two control/status bytes.
The size of the process image can be set to 12 bytes, 20 bytes, 24 bytes, 32 bytes, 40 bytes or 48 bytes.
The mailbox length can be set to 0 bytes, 6 bytes, 10 bytes, 12 bytes or 18 bytes.
Note If a mailbox length of 0 bytes is set, it will only be possible to access the process data of digital slaves.
AS-Interface process data:
The length of the AS-Interface data and thus the number of transferable slaves is given by the combination of the above-mentioned process image and mailbox settings.
AS-Interface process data length = (Process image length – Mailbox length – 2)
The following table shows a summary of the permissible configurations of process image and mailbox:
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 25 Process image
Mailbox length
PI C/S
12 2 10 19 4 7 0 0 - - - -
20 2 18 34 12 23 8 15 6 11 0 0
24 2
32 2 30 58 24 46 20 38 18 34 12 23
40 2 38 62 32 62 28 54 26 50 18 38
48 2 46 62 40 62 36 62 34 62 28 54
PI Length of process image that can be set
C/S Number of status and control bytes (incl. filler bytes)
PD Length of AS-Interface process data
SL Number of transferable slaves
0 byte 6 byte 10 byte 12 byte 18 byte
PD SL PD SL PD SL PD SL PD SL
22 42
16 31
12 23 10 19 4 7
The standard setting is a process image length of 24 bytes and a mailbox length of 6 bytes. This results in an AS-Interface process data length of 16 bytes, i.e. 31 slaves can be read out.
2.1.1.7.2 Control and status byte
The bus master switches between process data communication and register communication with bit 27 in the control byte. The changeover is acknowledged by the bus module with bit 27 in the status byte.
2.1.1.7.2.1 Assignment for process data communication
With process data communication, the control and status bytes are assigned as follows:
Control byte
Byte 27 26 25 24 23 22 21 20
1 0 0 mbx 0 0 0 0 0
0 Mailbox suppressed mbx
1 Mailbox superimposed
The superimposition of the mailbox is activated and deactivated with bit 25 in the control byte. With process data communication, bit 27 in the control byte is always reset.
WAGO-I/O-SYSTEM 750 I/O Modules
26 • 750-655 [AS-Interface master module]
Process image
Status byte
Byte 27 26 25 24 23 22 21 20
1 0 gen.
fault
0 AS-Interface complete on internal bus Overflow
1 AS-Interface incomplete on internal bus (timing)
0 AS-Interface active AS-I
1 AS-Interface not active
0 AS-Interface supply OK and 24 V supply OK AS-Interface
power
consistency
(config error)
1 AS-Interface supply fault or 24 V supply fault
0 AS-Interface complete on internal bus Mapping
1 AS-Interface incomplete on internal bus (mapping)
0 Protected operating mode cnf mode
1 Set-up mode
0 Mailbox suppressed mbx
1 Mailbox superimposed
0 No fault General fault
1 Configuration error or at least one of the status bits 1 or 2
mbx cnf
mode
Map-
ping con­sist-
ency
AS-
inter-
face -
power
AS-I Over-
flow
The status of the AS-Interface master module is indicated by the bits 20 to 24 and 26 in the status byte. The superimposition of the mailbox is acknowledged by the bus module with
5
in the status byte.
bit 2 Process data communication is acknowledged by the bus module with bit 2 the status byte.
2.1.1.7.2.2 Assignment for register communication
With register communication, the control and status bytes are assigned as follows:
Control byte
Byte 27 26 25 24 23 22 21 20
1 1 R/W Register number
0 Read access R/W
1 Write access
7
in
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 27 Process image
Bit 26 (R/W) in the control byte determines the register read or write access. With register communication, bit 27 in the control byte is always set.
Status byte
Byte 27 26 25 24 23 22 21 20
1 1 — Register number
Register communication is acknowledged by the bus module with bit 27 in the status byte.
2.1.1.7.3 AS-Interface process data
In the data field of the AS-Interface process data, the data for (or from) 2 slaves are transmitted with each byte. In doing so, the data for the slave with the higher address are located in the lower value nibble. The main EC (Execution Control) flags or control bits are transmitted in place of slave 0, with which the master does not exchange any process data.
AS-Interface process data
Byte
offset
0
1 Slave 2/2A Slave 3/3A
… …
14 Slave 28/28A Slave 29/29A
15 Slave 30/30A Slave 31/31A
16 Reserved Slave 1B
17 Slave 2B Slave 3B
… …
30 Slave 28B Slave 29B
31 Slave 30B Slave 31B
27 26 25 24 23 22 21 20
Flags Slave 1/1A
F3 F2 F1 F0 D3 D2 D1 D0
Depending on the process image length, mailbox length and mailbox mode, it may be that not all AS-Interface process data are transmitted (cf. Chapter
2.1.1.7.1 "Overview process image").
WAGO-I/O-SYSTEM 750 I/O Modules
28 • 750-655 [AS-Interface master module]
Process image
2.1.1.7.3.1 AS-Interface flags
Flags
Input data Output data
F0 ConfigError Offline
F1 APF LOS master bit
F2 PeripheryFault A rising edge switches the
master to the set-up mode
F3 ConfigurationActive A rising edge switches the
master to the protected mode
0 Config OK ConfigError:
1 Config error
0 AS-Interface power OK APF:
1 AS-Interface power failed
0 Periphery OK PeripheryFault:
All bits in the LOS are set with a rising edge of the LOS master bit. All bits in the LOS are reset with a falling edge of the LOS master bit.
2.1.1.7.4 Mailbox
As well as the 32 bytes of input and output data, an AS-Interface master manages a large amount of configuration and parameter data. These data are only required for setting up the AS-Interface circuit and for diagnostics and therefore only have to be read or written occasionally.
In addition, the master supports slaves according to profile S-7.3 and S-7.4 and other multiplexing slaves, whereby large amounts of data can also occur.
1 Periphery fault
0 Configuration inactive, master in protected mode ConfigurationActive:
1 Configuration active, master in set-up mode
0 Online Offline:
1 Offline
0 Offline with ConfigError deactivated LOS master bit:
1 Offline with ConfigError activated
Access is made to these non-time-critical data via the mailbox.
WAGO-I/O-SYSTEM 750 I/O Modules
750-655 [AS-Interface master module] 29 Process image
2.1.1.7.4.1 Structure
Mailbox request
Byte 27 26 25 24 23 22 21 20
1 Opcode
2 T O A/B -
3 Request parameter byte 1
… …
36 Request parameter byte 34
Opcode Command code for the mailbox order
T Toggle flag A mailbox order is started when a change occurs.
O Order flag
(for mailbox orders with bit information)
A/B
(for 6-byte mailbox orders with bit information)
Channel changeover (for 6-byte mailbox orders with word information)
0 Bits are stored in parameter bytes in ascending order
(default value).
1 Bits are stored in parameter bytes in descending order.
0 A-slave data are transmitted before B-slave data. Slave changeover
1 B-slave data are transmitted before A-slave data.
0 Analog values are transmitted in the order Channel 1,
Channel 2, Channel 3, Channel 4.
1 Analog values are transmitted in the order Channel 3,
Channel 4, Channel 1, Channel 2.
Mailbox response
Byte 27 26 25 24 23 22 21 20
1 Opcode (mirrored)
2 T Result
3 Response parameter byte 1
… …
34 Response parameter byte 32
Opcode Mirrored command code for the mailbox order
T Toggle flag A mailbox order is acknowledged when a change occurs.
Result Status / error in the mailbox order
In most cases, the mailbox will not have the full length in order to provide space for the AS-Interface process data.
WAGO-I/O-SYSTEM 750 I/O Modules
30 • 750-655 [AS-Interface master module]
Process image
2.1.1.7.4.2 Access procedure
The user first writes the request parameter and then the opcode and toggle flag. As soon as the opcode or toggle flag changes, the master interprets the mailbox range of the module bus output data as a complete mailbox command and executes it. In doing so, the response parameters are stored in the mailbox range of the internal bus input data.
When the command has been processed, the master mirrors the opcode and the toggle flag. From this, the user recognizes that his request has been dealt with and the result is available in the internal bus input data.
The toggle flag is required so that two mailbox commands with the same opcode (but possibly different parameters) can be executed directly after one another.
The execution of a mailbox command is declined if the number of request parameter bytes transmitted (in the output data direction) is too small, i.e. if the mailbox length has been set too low.
WAGO-I/O-SYSTEM 750 I/O Modules
Loading...
+ 106 hidden pages