MANUAL
VBG-MOD-K20-D
AS-Interface/MODBUS-Gateway
VBG-MOD-K20-D
With regard to the supply of products, the current issue of the following document is applicable: The
General Terms of Delivery for Products and Services of the Electrical Industry, published by the
Central Association of the Electrical Industry (Zentralverband Elektrotechnik und Elektroindustrie
(ZVEI) e.V.) in its most recent version as well as the supplementary clause: "Expanded reservation
of proprietorship"
AS-Interface
Table of contents
Table of contents
Conformity Statement
1
1.1
General .................................................................................................. 7
2.1
Product information......................................................................................... 7
2.2
Safety..................................................................................................... 8
3.1
Intended use..................................................................................................... 8
3.2
3.2.1
4
4.1
Spezifications ....................................................................................... 9
Technical data .................................................................................................. 9
Installation........................................................................................... 10
Disposal ........................................................................................................................... 8
Internet http://www.pepperl-fuchs.com
AS-Interface
Installation
To install, place the unit on the upper edge of the DIN rail and then snap in the
lower edge.
[1]
[2]
+
5.4
Removing
3
2
To remove, press the holding clamps [2] down using a screwdriver [1], press the
unit firmly against the upper rail guide and lift out.
5.5
Electrical Connection
Information!
Electrical connections are described in section <Electrical connection>.
Information!
See also section <Operation in advanced display mode> for further information.
Internet http://www.pepperl-fuchs.com
11
5.6
Startup
5.6.1
klassische Anzeige
classical display
affichage classique
display classico
indicacin clsica
erweiterter Anzeigemodus
advanced display mode
mode daffichage tendu
modo di visualizzazione avanzata
modo de visualisacin avanzada
OK
LCD
1.12A
UNKNOWN SLAVE
MODBUS
QUICK SETUP
SETUP
SLAVE ADR TOOL
ESC
5.6.2
LCD
OK
OK
LCD
LCD
MODBUS
QUICK SETUP
SLAVE ADR TOOL
SLAVE TEST TOOL
MODBUS ADDRESS
OLD ADDRESS
3
NEW ADDRESS 000
2x
OK
LCD
LCD
MODBUS ADDRESS
OLD ADDRESS
3
NEW ADDRESS 000
DEVICE ADDRESS
COMM. PARAMETERS
EVENT COUNTERS
12
Internet http://www.pepperl-fuchs.com
AS-Interface
Installation
2x OK
OK
LCD
MODBUS ADDRESS
OLD ADDRESS
14
NEW ADDRESS 000
MODBUS ADDRESS
OLD ADDRESS
3
NEW ADDRESS 010
4x
LCD
2x ESC
LCD
OK
MODBUS
QUICK SETUP
SLAVE ADR TOOL
SLAVE TEST TOOL
2x ESC
The device is set to address 3 at the factory.
power
ser. active
ser. active
config error
U AS-i
AS-i active
prg enable
prj mode
AS-i Master
config error
U AS-i
AS-i active
prg enable
prj mode
AS-i
AS-i
Slave 1
LCD
1. 41
AS-i
Slave 1
AS-i
Slave 5
1. 1
0.5s
1. 5
0.5s
SEARCHING SLAVES
AS-i
Slave 5
AS-i
LCD
AS-i Master
5.6.3
Internet http://www.pepperl-fuchs.com
13
Quick setup
OK
config error
LCD
1. 5
LCD
STORE AS-INTERFACE
CONFIGURATION
OK
STORE +PRJ MODE
OK
2x ESC
LCD
QUICK SETUP
SETUP
SLAVE ADR TOOL
LCD
1.
OK
CONFIGURATION OK
LCD
WARNING:
OUTPUTS MAY BE
RESET
OK
LCD
HOST ERROR
NO CONNECTION
LCD
STORE AS-I
CONFIGURATION
STORE +RUN
STORE +PRJ MODE
14
Internet http://www.pepperl-fuchs.com
AS-Interface
Installation
5.8
Error tracing
5.8.1
Faulty slaves
power
LCD
ser. active
config error
AS-i active
prg enable
prj mode
1.1
AS-i Master
U AS-i
MISSING SLAVE
AS-i
2s
AS-i
Slave 1
LCD
1.24
AS-i
Slave 5
MISSING SLAVE
AS-i
Slave 24
ser. active
ser. active
config error
Config error
U AS-i
U AS-i
AS-i active
prg enable
AS-i Master
power
AS-i active
prg enable
AS-i
prj mode
AS-Interface
AS-i
Slave 1
AS-i
Slave 1
AS-i
Slave 5
AS-i
Slave 5
prj mode
LCD
Host error
no connection
AS-i Master
5.8.2
2s
set/
24
AS-i
Slave 24
AS-i
Slave 24
Internet http://www.pepperl-fuchs.com
15
5.8.3
Addressing
5.8.3.1
LCD
1x
1. 41
3 x OK
LCD
SEARCHING SLAVE
SLAVE ADR TOOL
OLD ADDRESS 2
NEW ADDRESS 6
PRG
OK
2x
1x
QUICK SETUP
SLAVE ADR TOOL
SLAVE TEST TOOL
LCD
SLAVE ADR TOOL
OLD ADDRESS 2
NEW ADDRESS 6
PRG
OK
LCD
SLAVE ADR TOOL
CONNECT NEW SLAVE
OLD ADDRESS
NEW ADDRESS
OK
LCD
SLAVE ADR TOOL
OK
Master
Slave
Connect module
2 x ESC
LCD
1. 6
UNKNOWN SLAVE
LCD
16
Internet http://www.pepperl-fuchs.com
AS-Interface
Electrical connection
6.
Electrical connection
6.1
6.1.1
VBG-MOD-K20-D
[2]
[3]
[4]
[5]
[6]
5 ... 6 mm / PZ2
0,8 Nm
7 LB.IN
10
[1]
2 x 24 ...12
Legend:
[1]
RS232 diagnostics port1
[2]
LEDs
[3]
D-sub connection (Modbus interface)
[4]
LC display
[5]
Push-buttons
[6]
AS-i and power supply terminal
1.
Internet http://www.pepperl-fuchs.com
17
Blau
AS-i-
Brown
AS-i+
Braun
AS-i+
Information!
Electrical work is to be performed only by electrical technicians.
6.3
6.4
Information!
The function ground can be connected either to the grounding screw or to the terminal.
The function ground should be made with as short a cable as possible to ensure good
EMC characteristics.
18
Internet http://www.pepperl-fuchs.com
AS-Interface
Electrical connection
6.4.1
M4
5 mm max!
Function ground
+ASI
+ASI
ASI +PWR (max. 8A)
Terminal
Signal / Description
+AS-i
ASI +PWR
FE
Information!
For additional information, please refer to the section <AS-i and power supply terminal
assignments>.
6.5
Diagnostics interface
The service and diagnostics interface (in conjunction with AS-i Control Tools
software) is used for communication between the PC and the unit.
6.5.1
The service and diagnostics interface is configured as a mini DIN-6 female and it
is placed at the top of the housing (see section <Overview of terminals, indicators
and operating elements>).
Internet http://www.pepperl-fuchs.com
19
9
8
7
6
0V
5
4
3
2
1
B
A
5V
PIN
Pin 3
A (RxD/TxD+)
Pin 5
0V
Pin 6
5V
Pin 8
B (RxD/TxD-")
RS485
The shilding of the interface cable is connected to the grounding terminal of the
AS-i master via a capacitor to avoid equalizing currents. It should be electrically
grounded elsewhere.
6.6.1
5V
390
390
220
220
B
390
390
GND
GND
AS-i Master
AS-i Master
Host
20
Internet http://www.pepperl-fuchs.com
AS-Interface
Electrical connection
6.7.1
se
r.
a
ct
iv
e
6.7
U AS-i
The AS-i network is sufficiently powered.
AS-i active
Normal operation is active
prg enable
Automatic single node replacement is enabled.
Exactly one slave is missing in the protected operating mode. The slave can be
replaced by another slave of the same type with address zero. The master automatically addresses the new slave to the faulty address and thus corrects the configuration error
Issue date: 6.12.2010
prj mode
The AS-i master is in configuration mode.
Internet http://www.pepperl-fuchs.com
21
Buttons
The buttons are used for the following:
Mode/
Switching between configuration mode and protected operating mode, and saving
the current AS-i configuration as the nominal configuration.
Set/
Selecting the address of and assigning an address to a slave.
OK, ESC
Changing to the advanced display mode.
22
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
7.
7.1
Overview
Commissioning
Classic mode
1.12A
Advanced display mode
MODBUS
DEVICE ADDRESS
COMM. PARAM.
WATCHDOG
EVENT COUNTERS
AS-I CIRCUIT 1
AS-I CIRCUIT 2
DEVICE ADDRESS
MODBUS ADDRESS
OLD ADDRESS 099
NEW ADDRESS 003
COMM.PARAMETERS
COM. PARAMETERS
BAUDRATE
19200
CHAR. FRAME
8E1
APPLY
WATCHDOG
WATCHDOG TIME
100
IN 10MS STEPS
000=DISABLE
EVENT COUNTERS
BUS MSGS 26135
CRC ERRS
0
SLV MSGS
7198
XCEPT RES
0
NO RES
0
CHP. OVAR
0
CLEAR COUNTERS
WARNING:
OUTPUTS MAY BE
SET AND HOST MAY
LOOSE CONTROL.
TEST
BINARY INPUTS
BINARY OUTPUTS
ANALOG INPUTS
ANALOG OUTPUTS
PARAMETER
..
31A - 1 1 1 1
1B - 0 1 1 0
...
31B - 0 1 0 1
WARNING:
OUTPUTS MAY BE
SET AND HOST MAY
LOOSE CONTROL.
BINARY INPUTS
0000
BINARY OUTPUTS
01
ANALOG INPUTS
0 +32767 OVERFL
QUICK SETUP
STORE AS-I
CONFIGURATION
STORE + RUN
STORE + PRJ MODE
1 +32767 OVERFL
ANALOG OUTPUTS
0 +1
(Option)
AS-I CIRCUIT 1
AS-I CIRCUIT 2
ENGLISCH
DEUTSCH
FRANCAIS
ITALIANO
ESPANOL
1 +2
F
PARAM
PERM PARAM
F
CONFIG
7FFE
PERM CONF 7FFE
CONTROL RUN
RUN
CHANGE
CHANGE
OPERATION MODE
CONFIG MODE
CHANGE
STORE ACTUAL
CONFIGURATION
| 1A- 0
2A- 2 | 3A- F
4A- E | 5A- 3
....
....
9
0
0
0
...
30B- 8 | 31B- 9
PERMANENT CONFIG
IO ID XID1 XID2
1A -
7F 34
...
7F 34
7F 34
...
31B -
7F 34
AS-I ADDRESS
ASSISTANT ON
NEXT ADDRESS TO
PROGRAM: 1A
3 -20023
....
...
9
0
0
0
30B- 8 | 31B- 9
LOS LIST OF
OFFLINE SLAVES
CLEAR ALL
SET ALL
| 1A- X
2A- | 3A4A- X | 5A- X
....
....
CONTROL FLAGS
0: 2A 47 2B 2C
4: 83 BD F2 58
...
124:4A C3 84 7A
STORE
1 +17898
2 +32767 OVERFL
PARAMETER
| 1A- 0
2A- 2 | 3A- F
4A- E | 5A- 3
FORCE OFFLINE
NO
CONTROL INFO
START BIT SET
RUNNING
CYCLE TIME
ACT: 2MS
MAX: 5MS
PERMANENT PARAM
3 -20023
ANALOG OUTPUTS
1 X (SINGLE SLAVE)
2 A (A-SLAVE)
3 B (B-SLAVE)
..
31
ANALOG IN 1
0 +2500
2 +32767 OVERFL
ANALOG INPUTS
1 X (SINGLE SLAVE)
2 A (A-SLAVE)
3 B (B-SLAVE)
..
31
CONTROL INFO
CONTROL RUN
CONTROL FLAGS
SETUP
AS-I SLAVE ADDR
FORCE OFFLINE
OPERATION MODE
STORE ACT CFG
PERMANENT PARAM
PERMANENT CFG
ADDR.ASSISTANT
LOS
FACTORY RESET
DISPLAY CONTR
DEFAULT
AS-I CIRCUIT 1
AS-I CIRCUIT 2
BINARY INPUTS
1A - 0 1 0 1
2A - 0 1 0 1
...
31A - 1 1 1 1
1B - 0 1 1 0
...
31B - 0 1 0 1
BINARY OUTPUTS
1A - 0 1 0 1
2A - 0 1 0 1
WARNING:
OUTPUTS MAY BE
RESET
MODBUS
AS-I CONTROL
QUICK SETUP
SLAVE ADR TOOL
SLAVE TEST TOOL
SETUP
IO + PARAM.TEST
DIAGNOSIS
ADV. DIAGNOSIS
AS-I SAFETY
LANGUAGE
DISPLAY CONTRAST
...
30B- X | 31B- X
Basic Operation
The device starts in the traditional mode. You can switch between the two modes with ESC or OK. In the advanced mode the cursor is moved by both arrow
buttons. Pushing OK puts you to the superior menue (in the drawing one step to the right side). ESC puts you back to the previous menue. To edit data you
first mark them with the cursor and then select them with OK, change them with the arrow buttons and finally apply them with OK. Pushing ESC cancels the
editing.
Internet http://www.pepperl-fuchs.com
23
Commissioning
Classic mode
1.12A
Advanced display mode
ETHERNET
QUICK SETUP
DIAGNOSIS
SLAVE ADR TOOL
TEST
SETUP
DISP CONTRAST
AS-I CIRCUIT 1
AS-I CIRCUIT 2
ETHERNET
MODBUS TCP
ETHERNET/IP
DIAGNOSIS
LPF LIST OF
PERIPH. FAULTS
| 1A30A- | 31A....
30B- | 31BFLAGS: 0131 05
0000 0001
0011 0001
0000 0101
0000 0101
1 PERIPHERY_OK
0 OFFLINE_READY
0 AS-I_PWR_FAIL
1 NORMAL_OP.
1 CONFIG_ACTIVE
0 AUTO_ADDR_AVL
0 AUTO_ADDR_ASN
0 LDS.0
0 CONFIG_OK
1 AUTO_ADDR_ENA
0 OFFLINE
1 DATA_EXCH_ACT
ACTUAL CONFIG
0A
| 1A-C
....
30A-X | 31A-D
| 1B-X
....
30A | 31B-F
HILFE
X O.K.
D DETECTED ONLY
SLAVE UNKNOWN
P PROJ. ONLY
SLAVE MISSING
C TYPE CONFLICT
WRONG TYPE
PERIPHERAL ER.
SAFETY SLAVES
SAFE SUBST VAL
EXT MONITOR
FAULT DETECTOR
DELTA LIST
LCS
ERROR COUNTER
LPF
FLAGS
ACTUAL CONFIG
AS-i MASTER
SAFETY ORIENTED
SLAVES
| 12-XX | 3-RR
MODBUS/TCP
ETHERNET
LINK:
NO CONNECTION
MAC ID:
00-50-C2-01-00-00
ETHERNET
TCP/IP
MODBUS
....
30-RX | 31-XR
HELP:
X O.K.
R CH. RELEASED
WATCHDOG TIME
200
in 10ms STEPS
000 = DISABLE
FAULT DETECTOR
RESET
HISTORIC:
ETHERNET/IP
NOT ACTIVE
ACTIVATE IT?
YES
NO
CHANGES TAKE
EFFECT ON NEXT
POWER ON
IP ADDRESS
0.0.0.0
NETMASK
0.0.0.0
DEFAULT GATEWAY
0.0.0.0
DYNAMIC
ACTUAL:
...
SLAVES
0| 1-A
2-A
| 3-A
...
30B | 31-B
ETHERNET/IP
IF STATUS
IF CAPABILITY
IF CONTROL
PATH TO LINK OBJ
TCP/IP CONFIG.
TCP/OBJECT
ETHERNET OBJ.
MAILBOX MODE
LCS LIST OF
CORRUPT. SLAVES
RESET
APF | 1-A
MAILBOX MODE
38 BYTE
ERROR COUNTER
FOR SLV. DETAILS
PRESS OK ON ADR
RESET
APF - 0
...
31A - 65535
1B - 34
...
30B - 0
CONFIGURED
NO DNS CLIENT
DHCP CLIENT
DHCP-DNS UPD
CFG SETTABLE
20 - F6 - 24 - 01
IF SPEED
IF STATUS
PHYSICAL. ADDR.
IF COUNTER
SWID:
42986
COMMAND INTERF.
2
MASTER CPU:
42273
GLUE LOGIC:
42962
FEATURE STRING:
.B..DC1.
OA.AU.T
IP ADDRESS
192.168.42.149
NETMASK
255.255.255.0
GATEWAY
0 .0 .0 .0
100 Mbps
LINK ACTIVE
DUPLEX INDETERM.
A/NEGO INDETERM.
RESET NEEDED
NO HW FAULT
12-34-56-78-9A-BC
Basic Operation
The device starts in the traditional mode. You can switch between the two modes with ESC or OK. In the advanced mode the cursor is moved by both arrow
buttons. Pushing OK puts you to the superior menue (in the drawing one step to the right side). ESC puts you back to the previous menue. To edit data you
first mark them with the cursor and then select them with OK, change them with the arrow buttons and finally apply them with OK. Pushing ESC cancels the
editing.
24
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
Warning!
Classical (traditional) mode does not guarantee any protection of the settings of the
device!
In the classical mode, it is possible to change settings while the device is in operation.
This can lead to failures of the installation/process (for example changing the address
of an AS-i slave).
7.2
1.12A
MODBUS
QUICK SETUP
S L AV E A D D R . T O O L
S L AV E T E S T T O O L
SETUP
I O + PA R A M . T E S T
DIAGNOSIS
A D V. D I A G N O S I S
AS-i SAFETY
LANGUAGE
Information!
Some of the settings in the advanced mode are protected as long as the upstream
fieldbus running. That means that some status information can be displayed only.
To protect the installation/process, many options such as "change address", "write
parameter", "set outputs", etc. cannot be performed with an active connection to the
control system (active fieldbus connection) . In order to execute these commands via
the display, the connection to the control system must be deactivated first (no fieldbus connection).
The device starts up in the classical mode. Pressing the OK button switches to
the advanced mode. To return to the classical mode, the ESC button must be
pressed several times.
In the advanced mode, the selection menu can be moved up and down by using
the two arrow buttons. Pressing OK switches to the selected function or to the
displayed menu, respectively. Pressing ESC returns to the previous menu.
To edit a value it must be highlighted by using the selection bar and then pressing OK. The data can be changed by using the arrow-buttons. Changes are confirmed with OK. The ESC button cancels the editing process.
Internet http://www.pepperl-fuchs.com
25
DEVICE ADDRESS
COMM. PARAM.
EVENT COUNTERS
Within the menu "Modbus", one of the following submenues can be called up:
7.4
Device Address
Comm. Parameters
Event Counters
DEVICE ADDRESS
MODBUS ADDRESS
OLD ADDRESS 099
NEW ADDRESS 003
This feature allows you to set or change the Modbus station address.
The number behind "Old Address" shows the current station address. By selecting "New Address" the station address can be changed.
7.5
Communications parameter
COM. PARAMETERS
BAUDRATE 19200
CHAR. FRAME 8E1
APPLY
This function enables the changing of the interface configuration of the serial interface.
The number behind "Baud Rate" shows the actual transmission speed of the serial interface.
You can select the following baudrates: 1200, 2400, 4800, 9600, 19200, 28800,
38400, 57600 or 115000 baud, whereas 9600 baud is set as default.
In the next line of this menu you can select the bus parameters like stop bit, data
bit and parity. The following values are possible:
26
data bit: 7, 8
parity: no, even, odd
stop bit: 1, 2
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
8N1 is set as default. This means: 8 data bits, no parity and 1 stop bit.
Possible changes can be set as actual by selecting "Apply" and confirming by
pressing the "OK" button.
7.6
Event counter
BUS MSGS
26135
CRC ERRS
0
SLV MSGS
7198
XCEPT RES
0
NO RES
0
CHP. OVAR
0
CLEAR COUNTERS
With this function several event counters are displayed for further diagnostics of
the AS-i circuit.
The following informations are displayed:
Bus Msgs:
CRC Errors:
Slv Msgs:
Xcept Res:
Chr Ovrr:
To reset the counters select "Clear Counters" and then press the "OK" button.
7.7
CONTROL INFO
CONTROL RUN
CONTROL FLAGS
The control menu contains the following sub-menus:
Internet http://www.pepperl-fuchs.com
27
CONTROL INFO
CONTROL
INFO
START BIT SET
RUNNING
CYCLE TIME
ACT:
2MS
MAX:
5MS
This function displays the current status of the AS-i control (control program).
START BIT SET:
START BIT RESET:
RUNNING:
STOPPED:
The control program can be stopped even though the start bit was set. Example: any
configuration error occurs, or the master is in the configuration mode.
ACT: current cycle time of the control program
MAX: maximum cycle time of the control program since its last start
7.7.2
CONTROL RUN
CONTROL
RUN
CHANGE
RUN
This function is used to start or stop the control program. It modifies the START
BIT in the Control Info menu.
RUN: The control program has been started. The control program
can be stopped even if the start bit is set, for example if a configuration error occurred or if the master is in configuration
mode.
CHANGE: Change the state between RUN and and STOP.
28
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
7.7.3
CONTROL
0:2A
4:83
...
124: 4A
47
BD
FLAGS
2B 2C
F2 58
C3
84
7A
This function is used to read and modify the control program's flag memory.
5:10111101
4:83
[BD] F2
58
After pressing OK, the display mode changes and it is now possible to select individual flags using the soft keys. The selected flag is then displayed in binary format at the top row.
7.8
QUICK SETUP
WARNING:
OUTPUTS CAN BE
RESET!
Warning!
Outputs can be reset!
Pressing "OK" switches the user to the sub menu "Store AS-i Configuration".
STORE AS-I
CONFIGURATION
STORE + RUN
STORE + PRJ MODE
Store+Run
Internet http://www.pepperl-fuchs.com
29
This function enables setting and changing the addresses of both new and already configured AS-i slaves. This function replaces the handheld AS-i address
programming device.
Pressing the OK button continues with the actual test, ESC cancels the process.
Failed: SND:
Failed: SD0:
Failed: SD2:
Failed: DE:
Failed: SE:
30
Internet http://www.pepperl-fuchs.com
If an error occurs while addressing a slave, one of the following error messages is
displayed for about 2 seconds:
AS-Interface
Operation in advanced display mode
Failed: SND: slave with old address has not been detected.
Failed: AT: new address for AS-i slave could be stored temporarily only.
Failed: RE: error reading extended ID1-code.
Information!
When working with a double master (AS-i master and two AS-i networks) the AS-i network must be selected first by using the arrow and the OK buttons.
AS-i CIRCUIT 1
AS-i CIRCUIT 2
7.10
After selecting the menu SLAVE TEST TOOL a warning message is displayed,
pointing out, that it is possible during this test that outputs are set and that the
host may loose control over the network.
Pressing the OK button continues with the actual test, ESC cancels the process.
WARNING:
OUTPUTS MAY BE
SET AND HOST MAY
LOOSE CONTROL.
In the proceeding menu the slave to be tested has to be selected by entering the
slave address.
Afterwards, testing the selected slave is started by confirming the menu entry
"Test".
Analog inputs
Analog outputs
Internet http://www.pepperl-fuchs.com
31
1
ANALOG INPUTS
0000
1 +32767 OVERFL
ANALOG OUTPUTS
0 +32767 OVERFL
ANALOG OUTPUTS
0 +1
1 +2
PARAM
F
PERM PARAM
F
CONFIG
0A72
PERM CONF 0A72
Information!
When working with a double master (AS-i master and two AS-i networks) the AS-i network must be selected first by using the arrow and the OK buttons.
AS-i CIRCUIT 1
AS-i CIRCUIT 2
32
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
7.11
7.11.1
AS-I CIRCUIT
AS-i CIRCUIT 1
AS-i CIRCUIT 2
To start this setup menu, an AS-i circuit must first be selected using the arrow and
the OK buttons.
The function is only available for AS-i masters with two AS-i circuits.
7.11.2
Internet http://www.pepperl-fuchs.com
33
FORCE OFFLINE
NO
CHANGE
This function is used to change the address of a slave.
YES: AS-i Master is offline.
NO: AS-i Master is online.
OPERATION MODE
OPERATION MODE
CONFIG MODE
CHANGE
This function shows the current operation mode of the AS-i master:
PROTECTED MODE: protected operating mode
CONFIG MODE: configuration mode
STORE ACTUAL
CONFIGURATION
STORE
This function can only be executed in configuration mode.
34
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
This function enables currently detected slaves on the selected AS-i network to
be stored in the configuration of the AS-i Master.
If "Store" was successful, the LED "Config error" is turned off. The configuration is
stored and the configuration error has been eliminated.
However, if one of the connected slaves exhibits a peripheral fault, the LED "Config error" will flash.
If the AS-i master is in protected mode, the error message "Failed No Config
Mode" will appear:
Address 0 is not a permitted operation address for a slave. If an AS-i slave with
this address exists, storing the configuration will still be confirmed with "OK".
However, the configuration error remains.
7.11.6
PERMANENT PARAM
| 1A- 0
2A - 2 | 3A- F
4A - E | 5A- F
30A- 8 | 31A- 9
| 1B- 0
2B - E | 3B- 0
4B - E | 5B- 0
30B- 8 | 31B- 9
This function is used to set the permanent parameters. All present slave addresses are displayed in sequence from 1A to 31A and from 1B to 31B. Data for single
slaves are displayed with the addresses 1A to 31A. The parameter value is displayed behind the respective slave address.
Internet http://www.pepperl-fuchs.com
35
7.11.7
PERMANENT CONFIG.
IO ID XID1 XID2
1A- 7F34
31A- 7F34
1B- 7F34
31B- 7F34
This function is used to set the permanent configuration values. The defined values for the configuration data are displayed behind the respective slave address
in the following order:
IO (I/O-configuration) ID (ID-configuration) xID1 (extended ID1)
xID2 (extended ID2).
7.11.8
AS-I ADDRESS
ASSISTANT
ON
NEXT ADDRESS
ADDR.:
The AS-i address assistant assists the user to quickly set up an AS-i network.
Once the AS-i configuration has been stored, a new AS-i slave with address 0
can be used to assign the correct address.
Selecting "Assistant on" or "Assistant off" switches the AS-i address assistant on
or off. The current state of the AS-i address assistant is displayed:
ASSISTANT ON: AS-i address assistant is switched on.
ASSISTANT OFF: AS-i address assistant is switched off.
1.
Store AS-i configuration in the device. This can easily be done by using the
Windows software AS-i Control Tools (Master | Store configuration for the
AS-i Master ...), or directly in the advanced display mode.
2.
3.
36
Internet http://www.pepperl-fuchs.com
Procedure:
AS-Interface
Operation in advanced display mode
4.
7.11.9
Now the AS-i slaves are connected to the AS-i network one at the time in
the order specified by the AS-i address assistant. The last line displayed for
the AS-i address assistant shows which AS-i slave will be connected next.
LOS LIST OF
OFFLINE SLAVES
CLEAR ALL
SET ALL
| 1A- X
2A| 3A4A-X
| 5A- X
....
30A-X
| 31A| 1B- X
2B- X
| 3B- X
4B- X
| 5B- X
....
30B- X | 31B- X
See also <Advanced Diagnostics for AS-i Masters>.
By using "Clear all" and "Set all" all bits in this list can be delete or set, respectively, at the same time. Below this is a list of all slaves that can be selected individually in order to set or delete the LOS bit.
Empty field: LOS bit deleted
X: LOS bit set
7.11.10
AUTO ADDRESS
ENABLE
CHANGE
This function is used to enable or disable automatic address assignment.
Internet http://www.pepperl-fuchs.com
37
FACTORY RESET
DO RESET
This function can be used to reset the master to the factory default settings. The
Reset is done by selecting menu point DO RESET.
Warning!
This function should be used only in emergencies, since all previously set attributes are
set back to the factory setting and ,thus, secure communication and operation of the
masters with the AS-i network is no longer guaranteed.
Master and AS-i network have to be reconfigured after a successful "Reset".
For double masters the "Reset" acts on both AS-i masters!
7.12
AS-I CIRCUIT
AS-I CIRCUIT 1
AS-i CIRCUIT 2
To get to the IO and Parameter Test Program, an AS-i network must first be selected by using the arrow and OK buttons.
The function is only available for AS-i masters with two AS-i networks.
7.13
IO + PARAM.TEST
The following warning message will be displayed before entering this menu:
WARNING: OUTPUTS
MAY BE SET AND
HOST MAY LOSE
CONTROL OVER
THE AS-I MASTER.
BINARY INPUTS
BINARY OUTPUTS
ANALOG INPUTS
ANALOG OUTPUTS
PARAMETER
The menu "IO + Param.Test" offers the following sub menus:
38
Internet http://www.pepperl-fuchs.com
Pressing the OK button continues with the actual test, ESC cancels the process.
AS-Interface
Operation in advanced display mode
BINARY INPUTS:
BINARY OUTPUTS:
ANALOG INPUTS
ANALOG OUTPUTS:
PARAMETERS:
7.13.1
BINARY INPUTS
BINARY INPUTS
D3...D0
1A - 0 1 0 1
2A - 0 1 0 1
3A - 0 0 0 1
This function displays the state of the binary inputs for all AS-i slaves.
0: Input cleared
1: Input set
7.13.2
BINARY OUTPUTS
BINARY OUTPUTS
D3...D0
1A - 0 1 0 1
2A - 0 1 0 1
3A - 0 0 0 1
This function displays the state of the binary outputs for all AS-i slaves.
0: output cleared
1: output set
ANALOG INPUTS
ANALOG INPUTS
1 X
2 A
3 B
Internet http://www.pepperl-fuchs.com
39
Single Slave
A-Slave
B-Slave
A+B Slave
bar graph
If the selected slave is a transparent slave, the value is always displayed without
sign. If the selected slave is a transparent slave, the value is always displayed
without sign. In this case, when the value is changed only positive values can be
entered. Additionally, a value overflow is indicated by "Overfl".
ANALOG IN
0 +2500
7.13.4
+17898
+32767 OVERFL
-20023
ANALOG OUTPUTS
ANALOG OUTPUTS
1 X
2 A
3 B
This function displays the values of the analog outputs for all AS-i slaves.
If the selected slave is a transparent slave, the value is always displayed without
sign. If the selected slave is a transparent slave, the value is always displayed
without sign. In this case, when the value is changed only positive values can be
entered. Additionally, a value overflow is indicated by "Overfl".
40
Internet http://www.pepperl-fuchs.com
bar graph.
AS-Interface
Operation in advanced display mode
ANALOG OUT
0 +2500
+17898
+32767 OVERFL
-20023
PARAMETER
PARAMETER
| 1A - 0
2A - 2| 3A - F
4A - E| 5A - 3
This function displays the hexadecimal value of the current AS-i parameters for
all AS-i slaves.
The current AS-i parameters can be changed after selecting a slave address.
7.14
AS-I CIRCUIT
AS-I CIRCUIT 1
AS-i CIRCUIT 2
Please select the required AS-i circuit using the arrow buttons and the OK button.
Than you get the diagnostic menu.
The function is only available for AS-i masters with two AS-i circuits.
7.15
DIAGNOSIS
FLAGS
ACTUAL CONFIG
LPF
AS-I MASTER
Internet http://www.pepperl-fuchs.com
41
For additional information refer to chap. <Advanced Diagnostics for AS-i Masters>.
7.15.1
FLAGS
FLAGS: 0131 05
0000 0001
0011 0001
0000 0101
1
PERIPHERY_OK
0
OFFLINE_READY
0
AS-I_PWR_FAIL
1
NORMAL_OP.
1
CONFIG_ACTIVE
0
AUTO_ADDR_AVL
0
AUTO_ADDR_ASN
0
LDS.O
1
CONFIG_OK
1
0
1
AUTO_ADDR_ENA
OFFLINE
DATA_EXCH_ACT
This function displays the EC-flags in hexadecimal or binary format as well as single bits beginning with the least significant bit.
Arrangement of the bits within the byte:
Byte
Byte value: 27 26 25 24 23 22 21 20
Bit:
Byte 1
Bit 0: Periphery_OK
This flag is set if none of the AS-i slave signals a peripheral fault.
Byte 2
Bit 7: Offline_Ready
The flag is set if the AS-i master is offline.
42
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
Bit 6: AS-i Pwr Fail
The flag is set if the AS-i circuit is not sufficiently powered.
Bit 5: Normal_Op.
The flag is set if the AS-i master is in normal operation.
Bit 4: Config_Active
The flag is set in configuration mode and is reset in protected mode.
Bit 3: Auto_Addr_Avl
The flag is set if the automatic addressing is possible. This means that exactly
one slave has failed.
Bit 2: Auto_Addr_Asn
The flag is set if automatic addressing is possible (AUTO_ADDR_ENABLE =
1; no "incorrect" AS-i slave is connected to AS-i).
Bit 1: LDS.0
The flag is set,if an AS-i slave with address 0 has been detected.
Bit 0: Config_OK
The flag is set if the projected configuration is equal to the actual configuration.
Byte 3
Bit 0: Data_Exch_Act
If the flag "Data Exchange Active" is set, the data exchange with AS-i slaves is
possible during the data exchange phase. If the bit is not set, the data
exchange with AS-i slaves is inhibited. Instead of data telegrams READ_ID
telegrams will be sent.
The bit is set by the AS-i master at the beginning of the offline phase.
Bit 1: Offline
This bit is set if the operating mode is supposed to be changing to offline or is
already offline.
Bit 2: Auto_Addr_Ena
Internet http://www.pepperl-fuchs.com
43
ACTUAL CONFIG
0A
| 1A-C
....
30A-X
| 31A-D
| 1B-X
....
30A
| 31B-F
HELP:
X O.K.
D DETECTED ONLY
UNKNOWN SLAVE
P PROJ. ONLY
MISSING SLAVE
C TYPE CONFLICT
F PERIPH. FAULT
A DUPLICATE ADDR
This function displays the status of the actual configuration of the individual AS-i
slaves.
A help appears at the end of the list explaining the abbreviations:
X (O.K.): The configuration data for the detected AS-i slave agree with
the designed in configuration data.
D (Detected Only): An AS-i slave is detected at this address, but it was not
designed in.
P (Projected Only): An AS-i slave was designed in at this address, but it was not
detected.
C (Type Conflict): The configuration data for the detected AS-i slave do not
agree with the designed in configuration data. The actual existing configuration of the connected AS-i slave is displayed.
F (Periph. Fault): The AS-i slave has a peripheral error.
A (Duplicate Adr.): Two AS-i slaves at the indicated address.
After selecting the desired AS-i slave address, the values for the current configuration data are displayed after the respective address in the following order:
IO (I/O-Configuration)
ID (ID-Configuration)
xID1 (extended ID1)
44
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
0A - .... 1A - 7A28 -C
WRONG TYPE
In addition, the status of the configuration is shown in plain text.
If no AS-i slave is present at an address and none is designed in, four decimal
points are displayed instead of the configuration data.
7.15.3
LPF LIST OF
PERIPH. FAULTS
| 1A-X
2A| 3A4A-X | 5A-X
....
30A-X | 31A| 1B-X
This list shows the list of slaves which have triggered peripheral faults (LPF).
Empty field: Peripheral O.K.
X: Peripheral fault
7.15.4
VERSION
20000919
FEATURE STRING
ZEFOD1.AS.ER
This function shows information about the version and features of the AS-i master:
Internet http://www.pepperl-fuchs.com
45
AS-I CIRCUIT 1
AS-i CIRCUIT 2
Please select the required AS-i circuit using the arrow buttons and the OK button.
Than you get the diagnostic menu.
7.17
ERROR COUNTER
LCS
FAULT DETECTOR
The menu "Adv. Diagnosis" has the following sub menu:
ERROR COUNTER: error counter
LCS: list of slaves, that caused a configuration error
FAULT DETECTOR: history of the AS-i fault detector
For additional information refer to section <Advanced Diagnostics for AS-i Masters>.
7.17.1
ERROR COUNTERS
ERROR COUNTERS
RESET
1A - 0
...
31A - 65535
1B - 34
...
30B - 0
This list displays the fault counter for each single AS-i slave.
In addition, the number of voltage dropouts/undervoltage on AS-i (APF) is displayed.
46
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
7.17.2
LCS LIST OF
CORRUPTED SLAVES
RESET
| 1A-X
2A| 3A4A-X
| 5A-X
....
30A-X
| 31A| 1B-X
2B-X
| 3B-X
4B-X
| 5B-X
....
30B-X
| 31B-X
This list contains entries for all AS-i slaves that were responsible for at least one
intermittent configuration error since the list was last read or since the AS-i master was turned on.
empty field: no error
X: AS-i Slave triggered a configuration error.
7.17.3
FAULT DETECTOR
FAULT DETECTOR
RESET
HISTORIC:
EFLT OVRV NOIS
ACTUAL:
EFLT OVRV NOIS
DUP ASI ADR:
0
| 31B
HELP:
EFLT EARTH FAULT
OVRV OVERVOLTAGE
NOIS NOISE
DUP ASI ADDR
DUPLICATE ASI
SLAVE ADDRESS
Internet http://www.pepperl-fuchs.com
47
Earth faults
Noise
Over-voltage
Optionally, the absence of the redundant 24V for some single masters may be
displayed.
7.18
AS-I CIRCUIT
AS-I CIRCUIT 1
AS-i CIRCUIT 2
Please select the required AS-i circuit using the arrow buttons and the OK button.
Than you get the AS-I SAFETY menu.
The function is only available for AS-i masters with two AS-i circuits.
7.19
AS-I SAFETY
SAFETY SLAVES
SAFETY MONITOR
SAFE SUBST. VAL.
This menu enables the following functions:
48
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
7.19.1
SAFETY ORIENTED
SLAVES
| 12-XX
| 3-RR
30-RX
| 31-XR
HELP:
X O.K.
RK RELEASED
The list of Safety Input Slaves (AS-i Safety at Work) shows the slaves for
which the safety function has been released:
X: The channel is OK
R: The channel has released
The first place corresponds to Channel 2, the second place to Channel 1. Thus
RX means that Channel 2 released and Channel 1 is OK.
The channels can not be evaluated individually, if the substitution of safety slaves
input data was disabled in menu:
command interface/ function profile
or
slave value substitute (SAFETY SUBST VALUE).
In this case both channels must have the same state, otherwise the indication will
not be proper.
7.19.2
SAFETY MONITOR
SAFETY MONITOR
ADDRESS
17
MODUS: SORT./V1
OK
Internet http://www.pepperl-fuchs.com
49
SAFETY MONITOR
DIAGNOSIS
ADDR: 17
MODE: SORT./V1
STATUS: OK
CHANNEL 1: OFF
CHANNEL 2: OFF
1-32: GREEN
The AS-i safety monitor diagnostics function reads the diagnostics data from the
AS-i safety monitor and displays these data. The significance of the displayed diagnostics and of the setting SORTED/V1, UNSORTED is described in the operating manual of the safety monitor.
7.19.3
SAFETY SUBST VAL (Substitute values for input data from safe slaves)
0000bin
0011bin
1100bin
1111bin
NO SUBSTITUTE
The safety code sequences are transmitted via the input data.
7.20
50
X
Issue date: 6.12.2010
LANGUAGE
ENGLISH
DEUTSCH
FRANAIS
ITALIANO
ESPAOL
Subject to reasonable modifications due to technical advances.
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation in advanced display mode
From this menu you can select the menu language. X marks the currently selected language.
7.21
DISPLAY CONTRAST
DEFAULT
__________________
This function allows you to set the display contrast.
Use the arrow keys to select the line with the bar
Press the MODE and SET keys and hold them down.
Internet http://www.pepperl-fuchs.com
51
8.
8.1
Information!
The last intermittent configuration error can also be displayed on the AS-i master:
Pressing the "Set" button on the AS-i master initiates the display of the AS-i slave
responsible for the last intermittent configuration error. If a intermittent AS-i power failure occurred, the display shows 39 after pressing the "Set" button.
This function is only available if the device is in normal operating mode of the protected
mode (display empty) or in the off-line phase (Display: "40").
8.2
Displaying the protocol analysis is possible through the AS-i Control Tools software by using the command "Master | AS-i Diagnostics".
52
Internet http://www.pepperl-fuchs.com
The highest possible counter value is 254. 255 indicates a counter overflow.
AS-Interface
Advanced Diagnostics for AS-i Masters
8.3
Any configuration error occurring on AS-i switches the master from regular
operation in protected mode into the offline phase.
o . A list with the addresses of slaves that can potential initiate the off-line
phase is defined (list of offline slaves LOS).
The user can decide how the system should react to a configuration error on
AS-i. Thus, the AS-i master can be set to the offline phase for critical AS-i slaves,
whereas for less critical slaves only the error message is sent to the host, but
AS-i is still running.
Like the advanced diagnostics, the parameterization "offline phase on configuration error" is also supported by "AS-i-Control-Tools"
(Command | Characteristics | Offline because of configuration error).
There are two options to reset the error message "OFFLINE BY LOS:
1.
Deleting the complete LOS list on the affected AS-i network ("CLEAR ALL").
2.
Attention!
If a power reset occurs on the AS-i network 1 the complete double gateway will
be shut down.
8.4
8.4.1
Information!
Duplicate addresses can be recognized only on an AS-i segment directly connected to
the master.
Internet http://www.pepperl-fuchs.com
53
8.4.2
Information!
A ground fault in one of the two networks of a double master in a version 1 power supply for two AS-i networks causes a ground fault in the other network as well because of
the the existing galvanic connection.
8.4.3
Noise Detector
The noise detector detects AC voltages on AS-i, that are not initiated by an AS-i
master or AS-i slaves. These interference voltages can cause telegram disturbances.
A frequent cause are insufficiently shielded frequency inverters or improperly
routed cables.
Noises is indicated on the masters display as well as in AS-i Control Tools.
8.4.4
Over-voltage Detector
Over-voltages are present if the conductors of an AS-i network that normally are
routed electrically symmetrical with respect to machine ground, are strongly electrically raised. A cause can for example be startup procedures of large consumers.
However, over-voltages do generally not interfere with the AS-i communication,
but can under certain circumstances cause incorrect sensor signals.
Over-voltages are indicated on the masters display as well as in the AS-i Control
Tools.
54
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
9.
read access
bit value
28
27
26
25
24
23
22
21
20
11
12
13
14
15
16
bit
1 - 16
F1
F2
F3
F4 F5
17 - 32
slave 0/0A
D0 D1
D2
10
F6
F7
F8
F9
slave 1/1A
D3 D0
D1
D2
slave 2/2A
D3 D0 D1
slave 5/5A
slave 3/3A
D2
slave 6/6A
D3
D0
D1
D2
33 - 48
slave 4/4A
49 - 66
slave 8/8A
slave 9/9A
slave 10/10A
slave 11/11A
65 - 80
slave 12/12A
slave 13/13A
slave 14/14A
slave 15/15A
81 - 96
slave 16/16A
slave 17/17A
slave 18/18A
slave 19/19A
97 - 112
slave 20/20A
slave 21/21A
slave 22/22A
slave 23/23A
113 128
slave 24/24A
slave 25/25A
slave 26/26A
slave 27/27A
129 144
slave 28/28A
slave 29/29A
slave 30/30A
slave 31/31A
10
145 160
nicht benutzt
slave 1/1B
slave 2/2A
slave 3/3B
11
161 176
slave 4/4B
slave 5/5B
slave 6/6B
slave 7/7B
12
177 192
slave 8/8B
slave 9/9B
slave 10/10B
slave 11/11B
13
193 208
slave 12/12B
slave 13/13B
slave 14/14B
slave 15/15B
14
209 224
slave 16/16B
slave 17/17B
slave 18/18B
slave 19/19B
15
225 240
slave 20/20B
slave 21/21B
slave 22/22B
slave 23/23B
16
241 256
slave 24/24B
slave 25/25B
slave 26/26B
slave 27/27B
17
257 272
slave 28/28B
slave 29/29B
slave 30/30B
slave 31/31B
D3
slave 7/7A
Tab. 9-2.
Internet http://www.pepperl-fuchs.com
55
read access
bit value
28
27
26
25
24
23
22
21
20
Bit
10
11
12
13
14
15
16
F9
F3
F4
18
273 - 288 F1 F2
19
D2
D3
F5
F6
F7 F8
slave 1/1A
slave 2/2A
D0
D0
D1
D2 D3
slave 5/5A
D1
slave 3/3A
D2
slave 6/6A
D3
D0
D1
D2
20
21
slave 9/9A
slave 10/10A
slave 11/11A
22
slave 13/13A
slave 14/14A
slave 15/15A
23
slave 17/17A
slave 18/18A
slave 19/19A
24
slave 21/21A
slave 22/22A
slave 23/23A
25
slave 25/25A
slave 26/26A
slave 27/27A
26
slave 29/29A
slave 30/30A
slave 31/31A
27
slave 1/1B
slave 2/2A
slave 3/3B
28
slave 5/5B
slave 6/6B
slave 7/7B
29
slave 9/9B
slave 10/10B
slave 11/11B
30
slave 13/13B
slave 14/14B
slave 15/15B
31
slave 17/17B
slave 18/18B
slave 19/19B
32
slave 21/21B
slave 22/22B
slave 23/23B
33
slave 25/25B
slave 26/26B
slave 27/27B
34
slave 29/29B
slave 30/30B
slave 31/31B
D3
slave 7/7A
Tab. 9-3.
56
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
write access
bit value
28 27
26
25
24
23
22
21
20
Bit
10
11
12
13
14
15
16
F2
F3
F4
F5
F6
F7
F
8
F9
D3
D0
D
3
D0
1 - 16
F1
17 - 32
slave 0/0A
D0
D1
D2
slave 1/1A
D1
D2
slave 2/2A
D1
slave 3/3A
D2
D3
D0
D1
D2
33 - 48
slave 4/4A
slave 5/5A
slave 6/6A
49 - 66
slave 8/8A
slave 9/9A
slave 10/10A
slave 11/11A
65 - 80
slave 12/12A
slave 13/13A
slave 14/14A
slave 15/15A
D3
slave 7/7A
81 - 96
slave 16/16A
slave 17/17A
slave 18/18A
slave 19/19A
97 - 112
slave 20/20A
slave 21/21A
slave 22/22A
slave 23/23A
slave 25/25A
slave 26/26A
slave 27/27A
slave 29/29A
slave 30/30A
slave 31/31A
10
slave 1/1B
slave 2/2A
slave 3/3B
11
slave 5/5B
slave 6/6B
slave 7/7B
12
slave 9/9B
slave 10/10B
slave 11/11B
13
slave 13/13B
slave 14/14B
slave 15/15B
14
slave 17/17B
slave 18/18B
slave 19/19B
15
slave 21/21B
slave 22/22B
slave 23/23B
16
slave 25/25B
slave 26/26B
slave 27/27B
17
slave 29/29B
slave 30/30B
slave 31/31B
Tab. 9-4.
Internet http://www.pepperl-fuchs.com
57
write access
bit value
28
27
26
25
24
23
22
21
20
bit
10
11
12
13
14
15
16
F2
F3
F4
18
273 - 288 F1
19
D1
D2
F5
F6
slave 1/1A
D3
D0
D1
slave 2/2A
D2 D3 D0 D1
slave 5/5A
D2
slave 6/6A
slave 3/3A
D3
D0
D1
D2
20
21
slave 9/9A
slave 10/10A
slave 11/11A
22
slave 13/13A
slave 14/14A
slave 15/15A
23
slave 17/17A
slave 18/18A
slave 19/19A
24
slave 21/21A
slave 22/22A
slave 23/23A
25
slave 25/25A
slave 26/26A
slave 27/27A
26
slave 29/29A
slave 30/30A
slave 31/31A
27
slave 1/1B
slave 2/2A
slave 3/3B
28
slave 5/5B
slave 6/6B
slave 7/7B
29
slave 9/9B
slave 10/10B
slave 11/11B
30
slave 13/13B
slave 14/14B
slave 15/15B
31
slave 17/17B
slave 18/18B
slave 19/19B
32
slave 21/21B
slave 22/22B
slave 23/23B
33
slave 25/25B
slave 26/26B
slave 27/27B
34
slave 29/29B
slave 30/30B
slave 31/31B
D3
slave 7/7A
Tab. 9-5.
58
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
The bits within the words of this block are arranged appropriate for the BLKM
(Block Move) function in Modicon's 984 Ladder Language (as proposed in the
Open Modbus Specification, Release 1.0). The bits are numbered from most
signicant bit to least signicant bit:
Reference 1
Flag
bit
bit value
write
read
F1
8000h
Data_Exchange_Active
Config_OK
F2
4000h
Off-Line
LDS.0
F3
2000h
Auto_Address_Enable
Auto_Address_Assign
F4
1000h
Configuration Mode on
Auto_Address_Available
F5
800h
Conguration_Active
F6
400h
Normal_Operation_Active
F7
200h
APF/not APO
F8
100h
Offline_Ready
F9
80h
Periphery_OK
F10
10
40h
F11
11
20h
F12
12
10h
F13
13
8h
Earth Fault
F14
14
4h
Overvoltage
F15
15
2h
Noise
F16
16
1h
Duplicate Address
Tab. 9-6.
Internet http://www.pepperl-fuchs.com
59
1: duplicate address
60
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
Referenz 2
Bit
bit value
write
read
8000h
ODI slave 0, D0
IDI slave 0, D0
4000h
ODI slave 0, D1
IDI slave 0, D1
2000h
ODI slave 0, D2
IDI slave 0, D2
1000h
ODI slave 0, D3
IDI slave 0, D3
800h
ODI slave 1, D0
IDI slave 1, D0
400h
ODI slave 1, D1
IDI slave 1, D1
200h
ODI slave 1, D2
IDI slave 1, D2
100h
ODI slave 1, D3
IDI slave 1, D3
80h
ODI slave 2, D0
IDI slave 2, D0
10
40h
ODI slave 2, D1
IDI slave 2, D1
...
...
...
...
Tab. 9-7.
Some of the flags are inverted in order to have zero values in protected mode
during normal operation without any conguration errors.
The bits within the words of all other blocks contain input or output data.
bit value
slave
8000h
D3
4000h
D2
2000h
D1
1000h
D0
800h
D3
400h
D2
200h
D1
100h
D0
80h
D3
10
40h
D2
11
20h
D1
12
10h
D0
13
8h
D3
14
4h
D2
15
2h
D1
16
1h
D0
Tab. 9-8.
The configuration mode can be switched on or off with an rising edge in reference
0, bit 4 or 5, respectively.
Internet http://www.pepperl-fuchs.com
61
Device-relevant references
4x referece
access
r/-
data
device
r/-
device version
r/-
r/-
2085
r/w
Front_Panel_Operation
(0 enabled, else disabled)
2086
r/w
Modbus watchdog1
2304
r/w
r/w
r/w
command interface
Tab. 9-9.
1.
The watchdog is set by default to 1000 msec (=100 in register 2086). This value will be automaticly set
after POWER ON of the gateway. Every write access on any Modbus registers reload the Watchdog timer
with the value in register 2086.
high byte
low byte
2305
flag byte 0
flag byte 1
2306
flag byte 2
flag byte 3
...
...
...
2368
4x reference
access
data
2087
r/w
61441
r/w
r/w
62481
-/w
63489
r/-
63490
r/-
63491
r/-
63492
r/-
module ID code
Tab. 9-11.
62
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
access
63493
r/-
data
module revision number
63494
r/-
63495
r/-
63496
r/-
63497
r/-
63498
r/-
r/-
r/-
"VBG-MOD-K20-D"
Tab. 9-11.
AS-i circuit 1
process data and actual configuration data
4x reference
access
data
r/-
r/w
r/w
r/-
r/-
r/-
r/-
4225
r/-
EC-flags
4226
r/w
hi-flags
Tab. 9-12.
1. Writing to the references 4129 to 4144 invokes the Execution Control function. Write_Parameter () rather than writing the PI.
4x reference 4225
Bitwert
Execution Control-Flags
1h
Config_OK!
2h
LDS.0
Auto_Address_Assign
8h
Auto_Address_Available!
10h
Configuration_Active
20h
Normal_Operation_Active!
40h
APF/not APO
80h
Offline_Ready
100h
Periphery_OK!
1000h
Earth Fault
2000h
Overvoltage
Tab. 9-13.
Internet http://www.pepperl-fuchs.com
63
4x reference 4225
Bitwert
Execution Control-Flags
4000h
Noise
8000h
Duplicate Address
Tab. 9-13.
64
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
error
1: no error
LDS.0: An AS-i slave with address zero is existing
Auto_Address_Assign: Automatic programming is allowed
Auto_Address_Available!: Automatic programming is possible
0: Auto-address is not possible
1: Auto-address is possible
Configuration_Active: The configuration-mode is active
Normal_Operation_Active!: The normal operation mode is active
0: normal operation is not active
1: normal operation is active
APF/not APO: An AS-i power fail occured
Offline_Ready: The off-line phase is active
Periphery_OK!: Periphery is OK
0: Periphery is not OK
1: Periphery is OK
Earth Fault: AS-i earth fault detection
0: no earth fault
1: earth fault
Overvoltage: AS-i overvoltage detection
0: no overvoltage
1: overvoltage fault
Noise: AS-i noise detection
0: no noise
1: noise fault
Duplicate Address: AS-i duplicate address detection
0: no duplicate address
1: duplicate address
4x reference 4226
Bitwert
Host Interface-Flags
Data_Exchange_Active!
Off_Line
Auto_Address_Enable!
Tab. 9-14.
Internet http://www.pepperl-fuchs.com
65
data
000Fh
I/O configuration
00F0h
ID-code
0F00h
extended ID 1-code
F000h
extended ID 2-code
Tab. 9-15.
66
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
9.1
9.1.1
access
r/w
data
permanent parameter (PP)
r/w
r/w
9.1.2
Enhanced diagnostic
AS-i circuit 1
enhanced diagnostic
4x reference
access
data
r/-
r/-
r/w
r/-
delta list
Tab. 9-17.
1. The transmission error counters and the LCS are reset each time they are read.
Internet http://www.pepperl-fuchs.com
67
Function invocation
AS-i circuit 1
function invocation
4x reference
access
data
4865
-/w
function: opcode
1: Set_Operation_Mode
2: Change_Slave_Address
3: Store_Actual_Parameters
4: Store_Actual_Configuration
5: Execute_Command
6: Send_Parameter
4865
r/-
function: result
0: success
32769: failure
32770: slave with 1st addr not detected
32771: slave with zero addr detected
32772: slave with 2nd addr detected
32773: delete error
32774: set error
32775: address stored temporarily
32776: extended ID1 stored temporarily
32777: error reading extended ID1
32778: parameter out of range
32779: invalid opcode
4866
r/w
4867
r/w
Set_Operation_Mode: A zero in the 4x reference 4865 activates the protected mode. All other values switch on the configuration mode.
Change_Slave_Address: This function will be executed, if the value 2 is written
to the 4x reference 4865. The value written in the 4x
reference 4867 will be the new address of the slave.
The old address has to be written to the 4x reference
4866 before.
Store_Actual_Parameters: If the value 3 is written to the 4x reference 4865, the
actual parameters (PI) will be stored as parameters
projected (PP).
Store_Actual_Configuration: If the value 4 is written to the 4x reference 4865, the
actual AS-i configuration will be stored as projected
parameters (PCD, LPS).
Execute_command: If the value 5 is written to the 4x reference 4865, this
function will be executed. The value written in the 4x
reference 4867 will be sent as the information-part to a
slave, which the 4x reference has been written before
to the 4x reference 4866.
68
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
Information!
B addresses are located behind A addresses.
Addresses 0 31 correspond to 0A 31A, addresses 32 64 correspond to
0B 31B.
9.2
9.2.1
16 bit output data of AS-i slaves according to slave profile 7.3 or 7.4
AS-i circuit 1
16 bit output data of AS-i slaves according to slave profile 7.3 or 7.4
data
4x
reference
word
5125
5126
124
...
5248
28
27
26
25
24
23
22
21
20
...
Tab. 9-19.
9.2.2
16 bit input data of AS-i slaves according to slave profile 7.3 or 7.4
AS-i circuit 1
16 bit input data of AS-i slaves according to slave profile 7.3 or 7.4
data
4x
reference
word
5253
5254
124
...
5376
28
27
26
25
24
23
22
21
20
...
Tab. 9-20.
Internet http://www.pepperl-fuchs.com
69
9.3
9.3.1
access
data
r/-
r/w
r/w
r/-
r/-
r/-
r/-
8321
r/-
ec-flags
8322
r/w
hi-flags
Tab. 9-21.
1. Writing to the refercences 8225 to 8234 invokes the Execution Control function. Write_Parameter() rather than writing the PI.
9.3.2
access
r/w
data
permanent parameter (PP)
r/w
r/w
9.3.3
Enhanced diagnostic
AS-i circuit 2
enhanced diagnostic
4x reference
access
data
r/-
r/-
r/w
r/-
delta list
Tab. 9-23.
70
1. The transmission error counters and the LCS are reset each time they are read.
Internet http://www.pepperl-fuchs.com
AS-Interface
The Modbus Address Table
9.3.4
Function invocation
AS-i circuit 2
Function invocation
4x reference
access
data
8961
-/w
function: opcode
1: Set_Operation_Mode
2: Change_Slave_Address
3: Store_Actual_Parameters
4: Store_Actual_Configuration
5: Execute_Command
6: Send_Parameter
8961
r/-
function: result
0: success
32769: failure
32770: slave with 1st addr not detected
32771: slave with zero addr detected
32772: slave with 2nd addr detected
32773: delete error
32774: set error
32775: address stored temporarily
32776: extended ID1 stored temporarily
32777: error reading extended ID1
32778: parameter out of range
32779: invalid opcode
8962
r/w
function: parameter 1
8963
r/w
function: parameter 2
Tab. 9-24.
Internet http://www.pepperl-fuchs.com
71
9.4
9.4.1
16 bit output data of AS-i slaves according to slave profile 7.3 or 7.4
AS-i circuit 2
16 bit output data of as-i slaves according to slave profile 7.3 or 7.4
data
4x
reference
word
9221
9222
124
...
9344
28
27
26
25
24
23
22
21
20
...
Tab. 9-25.
9.4.2
16 bit input data of as-i slaves according to slave profile 7.3 or 7.4
AS-i circuit 2
16-bit input data of AS-i slaves according to slave profile 7.3 or 7.4
data
4x
reference
word
9349
9350
124
...
9472
28
27
26
25
24
23
22
21
20
...
Tab. 9-26.
9.5
Modbus watchdog
The watchdog is set by default to 1000 msec (=100 in register 2086). This value
will be automaticly set after POWER ON of the gateway. Every write access on
any Modbus registers reloads the watchdog timer. If no values are written before
the watchdog timer is counted to zero, the gateway will automaticly put all AS-i
circuits that are not in configuration mode in a safe state by clearing the outputs.
The timeout period can be adjusted if necessary at the address 2086 (in 10 ms
units, range 1 to 65536) but it will return to the default value on power cycle.
If zero is written to the address 2086, the watchdog is disabled.
Reading the Address 2086 sets the remaining watchdog hold time back to the
time period set in this address (resetting the holding time at each output operation).
72
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation via Modbus
10.
10.1
Preselected is 9600 baud, no parity and one stop-bit (see chap. <Communications parameter>).
10.2
Message Structure
Telegrams from the Modbus-master (query-messages) and answers of the Modbus-slave have the same structure:
N1
N2
Nn
Clo
Chi
Internet http://www.pepperl-fuchs.com
73
For synchronization of the transmitter and the receiver an delay of three and a
half bytes-times must precede to each telegram.
10.3
Modbus Functions
Modbus functions supported by the AS-i/Modbus Gateway and their telegrams
are described in the following.
10.3.1
Shi
Slo
Response message:
D1
S:
N:
B:
D1 DB:
Nhi
Nlo
DB
Cq,lo
Cq,hi
Cr,lo
Cr,hi
Information!
In order to achieve short response times and therefore a fast data exchange , "S" and
"N" should be integer multiple of "8". Is this not the case, the master must sort the data
bits singly in the bytes to to be transferred. This is very time-consuming.
10.3.2
74
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation via Modbus
Leaving out the function-code, the telegram-structure is equal to the one of function 1.
Information!
In order to achieve short response times and therefore a fast data exchange , "S" and
"N" should be integer multiple of "8". Is this not the case, the master must sort the data
bits singly in the bytes to to be transferred. This is very time-consuming.
10.3.3
Shi
Slo
Response message:
D1,hi
Nhi
Nlo
DN,hi
Cq,lo
DN,lo
Cq,hi
Cr,lo
Cr,hi
Internet http://www.pepperl-fuchs.com
75
Shi
Slo
Cq,lo
Cq,hi
Response message:
Shi
Slo
Cr,lo
Cr,hi
S: Address to write.
D: State of the output:
Only two values are valid:
00hex: The output will be set to 0.
FFhex: The output will be set to 1.
10.3.6
Shi
Slo
Dhi
Dlo
Cq,lo
Cq,hi
Response message:
Shi
Slo
Dhi
Dlo
Cr,lo
Cr,hi
10.3.7
15
Shi
Slo
Nhi
Nlo
Query message:
15
Shi
Slo
Nhi
Nlo
S:
N:
B:
D1 ... DB:
Cr,lo
Cr,hi
D1
DB
Cq,lo
Cq,hi
In order to achieve short response times and therefore a fast data exchange , "S" and
"N" should be integer multiple of "8". Is this not the case, the master must sort the data
bits singly in the bytes to to be transferred. This is very time-consuming.
76
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation via Modbus
10.3.8
16
Query message:
16
Shi
Shi
Slo
Slo
Nhi
Nhi
Nlo
Nlo
Cr,lo
B
Cr,hi
D1,hi
D1,lo
Cq,hi
10.3.10
Cq,lo
Response message:
Cq,hi
Cr,lo
Cr,hi
no error
27 = 1: error
The slave response in the lower four bits is stored in the functions "Write parameter () and "Execute parameter".
Internet http://www.pepperl-fuchs.com
77
Function 8: Diagnostics
This function is a Modbus service function.
Query message:
Dhi
Dlo
Iq,hi
Iq,lo
Cq,lo
Cq,hi
Response message:
Dhi
Dlo
Ir,hi
Ir,lo
Cr,lo
Cr,hi
21
22
23
78
25
26
27
28
29
210
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation via Modbus
For formal reasons also the diagnostic codes 16, 17 and 18 (return slave NAK
count, return slave busy count and return bus character overrun count) were
returned, but with the value zero.
Internet http://www.pepperl-fuchs.com
79
65
Response message:
65
D1
Cq,lo
Cq,hi
DB
Cr,lo
Cr,hi
B/b
F/f
E/e
66
18
Shi Slo
D1
Response message:
66
Shi Slo
Cr,lo
D16
Cq,lo
Cq,hi
Cr,hi
80
Internet http://www.pepperl-fuchs.com
AS-Interface
Operation via Modbus
10.3.14
67
Response message:
67
18
Shi Slo
Cq,hi
D1
D16
Cr,lo
Cr,hi
Internet http://www.pepperl-fuchs.com
81
11.
1.
Connect the device to the PC via its serial interface and the diagnostic interface.
2.
3.
4.
5.
Select the appropriate settings (for example serial interface COM 2, station
address <auto>).
Select Master | AS-i configuration.
The AS-i configuration editor will be started. All detected and configured
AS-i slaves are displayed in this window.
6.
7.
82
Internet http://www.pepperl-fuchs.com
This way, the device driver is copied into the previous designed folder in AS-i Control
Tools and should be recognized automatically.
AS-Interface
System startup using AS-i Control Tools
8.
This window enables the user to edit a slave address and to set AS-i
parameters or AS-i configuration data. Additionally, inputs and outputs can
be tested.
Click the second button on the right side of the tool bar to get a graphical
display of "AS-i Control Tools".
9.
Internet http://www.pepperl-fuchs.com
83
Furthermore, an AS-i Address Assistant is available, allowing to perform an address change of a new AS-i slave to the desired address as soon as it is connected to the AS-i network. The desired AS-i configuration can be created offline
ahead of time and can be stored to a file. When setting up the system the AS-i
slaves are then simply connected, one at a time, to the AS-i network. Further descriptions to all additional features of this software can be obtained from the integrated help file.
84
Internet http://www.pepperl-fuchs.com
AS-Interface
Codes indicated by the display
12.
All displayed numbers bigger than 31 which can not be interpreted as a slave address are status or error messages of the master. They have the following meanings:
39
40
41
42
43
68
69
70
71
Wrong PIC-type.
72
73
74
75
76
77
78
79
80
Error while attempting to exit the configuration mode: A slave with address
zero exists.
81
82
The front panel operation is blocked. Until repowering-up the device can only
be accessed from the host via the interface.
83
Program reset of the AS-i Control program: The AS-i Control program is being
read from the EEPROM and copied into the RAM.
88
Internet http://www.pepperl-fuchs.com
85
91
92
Error while changing slave address: New address could not be set.
93
Error while changing slave address: New address could only be stored volatile
in the slave.
94
Error while changing the slave address in protected operating mode: Slave has
wrong configuration data.
95
The error 95 is caused by a superfluous slave and not by a missing slave. That
is why the slave address is occupied by this superfluous slave.
(In the protected mode the slave addresses which caused any configuration
error can be displayed by pressing the SET button. AS-i master without graphical display are not able to differentiate between a missing slave, an incorrect
slave or a redundant slave. All incorrect addresses are displayed.
By pressing the SET button 5 sec. the displayed address starts to flash. Pressing the SET button again the master attempts to program the slave at the
address 0 to the incorrect address.)
90
86
Internet http://www.pepperl-fuchs.com
AS-Interface
Glossary
13.
Glossary
A/B slave
An AS-i slave with extended addressing. The address range of an A/B slave extends from 1A to 31A and 1B to 31B. As the master needs the fourth output data
bit for switching between A and B address, A/B slaves only have three output
data bits maximum.
Activation phase
In the activation phase the detected slaves are activated by sending the parameter. This is indicated by a "42" on the Master's Display. This phase takes only 10
ms, tops, to short to be displayed.
AS-i Power Fail
Voltage drop on the AS-i line; If the voltage drops below a specific value, the master changes to the Offline phase.
Initiation phase
After the initial data exchange with all AS-i slaves the master is looking for new
slaves. For this purpose an inquiring call is sent to one AS-i address. If a reply is
received, the master tries to read the current configuration of the slave. Depending on the mode ( protected mode or configuration mode) and on the
current configuration, the detected slave will be activated.
After each data exchange with all AS-i slaves exactly one inquiring call is sent to
one slave address. Hence, the AS-i cycle always includes one more telegram
than the number of activated slaves ( LAS).
Autoprog flags
Auto Address Enable; flag from the operating system to the AS-i Master.
With this flag, automatic addressing can be enabled or disabled. This flag is
saved in non-volatile memory in the Master.
Auto Address Assign, Auto Address Possible; flag from the AS-i Master to the operating system.
Automatic programming is not disabled and no configuration error was
found.
If a slave fails, it could be addressed automatically.
Auto Address Available, flag from the AS-i Master to the operating system. Exactly one AS-i slave is missing and the automatic single node replacement is not disabled.
If at this point a slave with the address 0 and the profile of the missing slave
is connected, it automatically receives the address of the missing slave.
Internet http://www.pepperl-fuchs.com
87
I/O code
The first digit of the slave profile, which indicates how many in- and outputs the
slave has. A 4I/4O slave has for example a 7, and a slave with 4 digital inputs a
"0".
Detection phase
In the detection phase, after the startup the master is scanning for AS-i slaves.
The master remains in this phase until at least one slave was detected. If the
master remains in the detection phase no slave was found. Most of the time, the
reason for this is a wrong power supply or a wiring error.
The detection phase is indicated by code "41".
Protected mode
In protected operating mode only those slaves that are registered in the LPS
and whose current configuration matches the target configuration are activated.
Also see configuration mode. This mode is intended for normal operation,
since all AS-i protective measures are activated.
ID code
The ID code is set by the slave manufacturer and cannot be changed. The AS-i
Association determines the ID codes which are assigned for a particular class of
slaves. For example, all A/B slaves have ID code A.
ID1 Code, extended ID1 code
The ID1 code is set by the slave manufacturer. In contrast to the other codes,
which determine the profile, it can be changed from the master or using an addressing device. The user should however only use this feature in exceptional circumstances, since otherwise configuration errors may occur.
In the case of A/B slaves, the MSB of the ID1 code is used for distinguishing between the A and the B address. Therefore, only the lowest 3 bits are relevant for
these slaves.
Since this code was not introduced until AS-i Specification 2.1, it is also referred
to as extended ID1 code.
88
Internet http://www.pepperl-fuchs.com
AS-Interface
Glossary
Internet http://www.pepperl-fuchs.com
89
The slave profile is used to distinguish between various slave classes. It is specified by the AS-i Association and set by the slave manufacturer.
90
Internet http://www.pepperl-fuchs.com
I/O configuration and ID-Code, as well as extended ID1-Code and extended ID2-Code.
AS-Interface
Glossary
AS-i 2.0 slaves do not have extended ID1 and ID2 codes. A 2.1 or 3.0 AS-interface master enters in this case an F for each of the extended ID1 and ID2
codes.
Internet http://www.pepperl-fuchs.com
91
14.
Reference List
14.1
This Manual contains a detailed description of the AS-i 3.0 Command Interface.
92
Internet http://www.pepperl-fuchs.com
VBG-MOD-K20-D
FACTORY AUTOMATION
SENSING YOUR NEEDS
Worldwide Headquarters
Pepperl+Fuchs GmbH
68307 Mannheim Germany
Tel. +49 621 776-0
E-mail: info@de.pepperl-fuchs.com
USA Headquarters
Pepperl+Fuchs Inc.
Twinsburg, Ohio 44087 USA
Tel. +1 330 4253555
E-mail: sales@us.pepperl-fuchs.com
Asia Pacific Headquarters
Pepperl+Fuchs Pte Ltd.
Company Registration No. 199003130E
Singapore 139942
Tel. +65 67799091
E-mail: sales@sg.pepperl-fuchs.com
www.pepperl-fuchs.com
Subject to modifications
Copyright PEPPERL+FUCHS Printed in Germany
TDOCT-0838CENG
12/2010