Magnetic Autocontrol MGC-PRO User manual

Technical Manual
RS485/422
MGC-PRO MicroDrive
This technical manual is a supplement to the operating instructions "Barrier MHTMTM
MicroDrive" (5815,5001) and describes the RS485/422 module.
Before using the RS485/422 module, read this handbook and the operating instructions
"Barrier MHTMTM MicroDrive" carefully!
Doc-ID: 5815,0003EN
Version: 00

RS485/422 MGC-PRO MicroDrive
25815,0003EN / Version 00
MAGNETIC Autocontrol GmbH
Grienmatt 20
79650 Schopfheim
Germany
Phone: +49 (0) 7622 695 5
Fax.: +49 (0)7622 695 602
Email: [email protected]
Internet: www.ac-magnetic.com

RS485/422 MGC-PRO MicroDrive
Contents
5815,0003EN / Version 00 3
Contents
1General....................................................................................5
1.1 Information regarding the technical manual ..................5
1.2 Function .........................................................................5
1.3 Reference documents....................................................6
1.4 Pictogram explanation ...................................................7
1.5 Intended use ..................................................................7
2Technical data ........................................................................8
3Installation and network connection....................................9
3.1 RS485/422 Installing module in control unit
MGC-PRO......................................................................9
3.1.1 Corrective action ..........................................10
3.2 Perform network connection ........................................10
3.3 RS-485 bus..................................................................10
3.3.1 2-wire (half-duplex).......................................10
3.3.2 4-wire (full-duplex)........................................10
3.4 Address settings ..........................................................11
3.5 Menu "RS485/422" of the control unit MGC-PRO .......11
4Modbus interface .................................................................13
4.1 Standard Modbus ........................................................13
4.1.1 Function codes .............................................13
4.1.2 Address table................................................14
4.1.3 Examples......................................................15
4.2 Expanded access via Modbus
"Function Code 43/13".................................................17
4.2.1 CANopen TCP/IP Interface ..........................17
4.2.2 Module addresses ........................................17
4.2.3 Supported commands ..................................17
4.2.4 Examples......................................................18
5Commissioning ....................................................................22
5.1 Procedure ....................................................................22
5.2 Corrective action..........................................................22
5.3 Software tools ..............................................................23
6Appendix...............................................................................24
7List of abbreviations............................................................24
Index..............................................................................................25

RS485/422 MGC-PRO MicroDrive
Contents
45815,0003EN / Version 00

RS485/422 MGC-PRO MicroDrive
General
1 General
1.1 Information regarding the technical manual
This manual offers important information on handling of the
RS485/422 module. The RS485/422 module can only be operated
installed in the MAGNETIC MHTMTM MicroDrive barriers.
Prerequisite for secure work is compliance with all indicated safety
notes, warning notes and instructions in this manual and in the
operating instructions "Barrier MHTMTM MicroDrive" (5815,5001).
For better overview, the safety notes and warnings of the operating
instructions "Barrier MHTMTM MicroDrive" are not repeated.
Before using the RS485/422 module, read this handbook and the
operating instructions "Barrier MHTMTM MicroDrive" carefully!
NOTE!
This technical manual is valid as of the following
firmware version:
4915,3007 – v0.1
1.2 Function
The RS485/422 module can be used to parameterise and control
the MAGNETIC MHTMTM MicroDrive barrier via Modbus.
5815,0003EN / Version 00 5

RS485/422 MGC-PRO MicroDrive
General
1.3 Reference documents
NOTE!
This technical manual is based on the documents
listed in the following table.
All listed reference documents are available free of
charge via the indicated procurement source.
Number Title Author Procurement source
5815,5001 Operating instructions "Barrier
MHTMTM MicroDrive"
MAGNETIC Autocontrol
GmbH
5815,0000 MicroDrive MGC/MGC-PRO
Additional Information for System
integrators
MAGNETIC Autocontrol
GmbH
CIA309-1
CIA309-2
Interfacing CANopen with TCP/IP © CAN in Automation
(CiA) e. V.
www.can-via.org
– MODBUS APPLICATION
PROTOCOL SPECIFICATION
Modbus-IDA www.Modbus-IDA.org
– Modbus Messaging Implementation
Guide
Modbus-IDA www.Modbus-IDA.org
Table 1: Reference documents
65815,0003EN / Version 00

RS485/422 MGC-PRO MicroDrive
General
1.4 Pictogram explanation
Warning Notes Warning notes are characterised by pictograms in this manual. It is
absolutely essential to observe the notes and to proceed with
caution in order to prevent property damage.
NOTICE!
NOTICE!
… points to a potentially harmful situation, which
can lead to property damage if it is not avoided.
Hints and recommendations
NOTE!
… highlights useful hints and recommendations as
well as information for an efficient and trouble-free
operation.
1.5 Intended use
The plug-in module "RS485/422" is exclusively intended for
expansion of the MGC-PRO control devices by the function
"RS485/422". The plug-in module can only be operated installed in
the MAGNETIC MHTMTM MicroDrive barriers. This plug-in module
can be used to parameterise and control the MAGNETIC MHTMTM
MicroDrive barrier via Modbus.
Installation, connection and commissioning of the RS485/422
module and operation via the RS485/422 module must only be
performed by specialists.
Any types of claims due to damage arising from improper use are
excluded. The operator alone shall be responsible for any damage
arising from improper use.
NOTE!
For any further information on the barrier
MHTMTM MicroDrive, see operating instructions.
See page 6, chapter 1.3. "Reference documents".
5815,0003EN / Version 00 7

RS485/422 MGC-PRO MicroDrive
Technical data
85815,0003EN / Version 00
2 Technical data
Designation Unit Value
Current consumption mA 50
Max. line length: m 1000
Cable type – 2x2 (twisted), shielded
Plug type – Spring clip max. 2.5mm²
Supported services – MODBUS
Table 2: Technical data

RS485/422 MGC-PRO MicroDrive
Installation and network connection
3 Installation and network connection
3.1 RS485/422 Installing module in control unit MGC-PRO
Hints and recommendations
NOTE!
The RS485/422 module can only be operated with
the MAGNETIC control units MGC-PRO.
The RS485/422 module is installed and set in the factory. Observe
the following safety note in case of retrofitting by the customer.
RS485/422 Module retrofitting
NOTICE!
NOTICE!
Property damage from improper installation
and improper commissioning.
Therefore:
– Only qualified staff must install the RS485/422
module, connect and commission it.
– Take ESD precautions and comply with them.
1. Open barrier casing according to operating instructions
"Barrier MHTMTM MicroDrive". Observe warning notes.
2. Switch off power supply. Ensure that the system is powered
down. Secure against reactivation. The balancing springs in
the lever system are relaxed.
3. Take care when opening control unit cover.
4. Plug in plug-in module in a free slot.
NOTE!
Slot selection influences the plug-in module's
module address.
See page 17, chapter 4.2.2.
5. Switch on power supply.
6. Check LEDs at the plug-in module. The green LED at the
centre must be lit. If applicable, read the following chapter
"Corrective action".
7. The main menu shows the menu "RS485/422".
8. Apply cover of the control unit.
9. Close barrier casing according to operating instructions
"Barrier MHTMTM MicroDrive".
5815,0003EN / Version 00 9

RS485/422 MGC-PRO MicroDrive
Installation and network connection
3.1.1 Corrective action
Possible causeMalfunction Corrective action
Green LED at the
centre is not
permanently lit.
The RS485/422 module is only
supported by the control units MGC-
PRO.
Check label or type sign of the control
unit.
The RS485/422 module is not
plugged in correctly.
Check plug contacts. Plug in the
RS485/422 module again.
Green LED at the
centre is not lit.
Firmware update not performed
correctly.
Perform firmware update via the service
module SM01.
Table 3: Corrective action
3.2 Perform network connection
Connect the barrier to your RS485/422 devices with a suitable
cable. The clamp assignment is printed on the module's plug.
Y – Z – B – A – 0V
3.3 RS-485 bus
3.3.1 2-wire (half-duplex)
3.3.2 4-wire (full-duplex)
10 5815,0003EN / Version 00

RS485/422 MGC-PRO MicroDrive
Installation and network connection
5815,0003EN / Version 00 11
3.4 Address settings
The subscriber address is set comfortably using the operating
display of the MGC-PRO control unit.
When setting the address, observe that the addresses of the
different subscribers in the RS485 network differ.
3.5 Menu "RS485/422" of the control unit MGC-PRO
Once the RS485/422 module is plugged in and the control unit
supplied with power, the menu "RS485/422" appears in the main
menu.
The position of the menu "RS485/422" in the main menu depends
on the other plug-in modules installed and the slot used.
Operating view Main menu RS485/422
Parameters Description
Settings Display and setting of the network settings
Information Displays information via the RS485/422 module. The serial number, hardware
version, software number and software version of the RS485/422 module are
displayed.
Table 4: Menu "RS485/422"

RS485/422 MGC-PRO MicroDrive
Installation and network connection
12 5815,0003EN / Version 00
Operating view Main menu RS485/422 Settings
Parameters Description
Address The settings and display of the address of the bus participant.
Factory setting
1
Termination Activation/deactivation of the bus termination. When this function is activated, the
resistor is added via a relay.
Factory setting
OFF
Baudrate Setting the baudrate
Factory setting
19200
Parity Setting the parity
Factory setting
even
Bus-Type Setting the bus design. Choose between the settings 2-wire (half-duplex) and 4-wire
(full-duplex).
Factory setting
2-Wire
BIAS Activation/deactivation of the BIAS network resistors. When transmitting/receiving
via a core pair, undefined line conditions may be prevented by adding BIAS
resistors. When this function is activated, the resistor is added via a relay.
Factory setting
OFF
Table 5: Menu "Settings"

RS485/422 MGC-PRO MicroDrive
Modbus interface
4 Modbus interface
4.1 Standard Modbus
Communication takes place via the Modbus protocol.
After the connection between the client (master) and server (slave)
is established, the master sends Modbus requests to the server.
The result is returned as a Modbus response.
The PDU (Protocol Data Unit) defined in the Modbus protocol is
independent of the underlying communication layer. The PDU
consists of "Function Code" and "Data". The Modbus ADU
(Application Data Unit) for "Modbus via the serial interface“
comprises the address field, the PDU and a postfix checksum (16
bit CRC).
The "Function Code" of the message determines the Modbus
service to be performed. Depending on "Function Code", "Data"
includes additional information.
NOTE!
For more information on the Modbus
specifications, see reference document "Modbus
Application Protocol Specification", page 6, chapter
1.3.
4.1.1 Function codes
MicroDrive RS485/422 supports the following "Function Codes":
Function
Code
Function
03
04
06
16
Access via Modbus address table
43/13 Expanded parameter access (MEI subcode
CANopen)
Table 6: Function Codes
5815,0003EN / Version 00 13

RS485/422 MGC-PRO MicroDrive
Modbus interface
14 5815,0003EN / Version 00
4.1.2 Address table
The following Modbus address table permits access to the most
important functions and conditions of the barrier.
For this, the "Function Codes" 0x3 to 0x6 are used. See page 6,
chapter 1.3 "Reference documents".
Address Name Data
type
Area Acces
s
Description
0000 BarControl 16Bit 0 … 4 RW
Barrier commands:
0000 – delete commands
0001 – open
0002 – close
00041– opening high priority
0001 Status 32Bit RO Barrier status word
0003 Inputs 16Bit RO Conditions of the inputs of the MGC-PRO
control unit
0004 Outputs
16Bit RO Conditions of the outputs of the MGC-PRO
control unit
0005 Loop A 16Bit RO Status loop A
0006 Loop B 16Bit RO Status loop B
0007 Loop C 16Bit RO Status loop C
0008 Loop D 16Bit RO Status loop D
Table 7: Address table
1The command "Opening high priority" is not self-resetting. This must be explicitly deleted using (0000 –
Delete commands).

RS485/422 MGC-PRO MicroDrive
Modbus interface
5815,0003EN / Version 00 15
4.1.3 Examples
Reading status – request
Meaning Value
(hex)
ADU Address 01
Function Code (Read Holding Register) 03
00
Starting Address 01
00
PDU
Quantity of Register 02
95
ADU CRC-16 CB
Reading status – response Meaning Value
(hex)
ADU Address 01
Function Code (Read Holding Register) 03
Byte Count 04
Register Value HiHi 00
Register Value HiLo 10
Register Value LoHi 02
PDU
Register Value LoLo 01
3B
ADU CRC-16 56
Table 8: Example “Reading status”, request and response
Closing barrier – request
Meaning Value
ADU Address 01
Function Code (Write Single Register) 06
00
Register Address 00
00
PDU
Register Value 02
08
ADU CRC-16 0B
Closing barrier – response Meaning Value
ADU Address 01
Function Code (Write Single Register) 06
00
Register Address 00
00
PDU
Register Value 02
08
ADU CRC-16 0B
Table 9: Example "Closing barrier", request and response

RS485/422 MGC-PRO MicroDrive
Modbus interface
16 5815,0003EN / Version 00
Opening barrier – request
Meaning Value
ADU Address 01
Function Code (Write Single Register) 06
00
Register Address 00
00
PDU
Register Value 01
48
ADU CRC-16 0A
Opening barrier – response Meaning Value
ADU Address 01
Function Code (Write Single Register) 06
00
Register Address 00
00
PDU
Register Value 02
48
ADU CRC-16 0A
Table 10: Example "Opening barrier", request and response

RS485/422 MGC-PRO MicroDrive
Modbus interface
4.2 Expanded access via Modbus "Function Code 43/13"
4.2.1 CANopen TCP/IP Interface
In addition to the control via standard Modbus, access to further
parameters is possible via "Function Code 43/13". See page 6,
chapter 1.3 "Reference documents", document "Interfacing
CANopen with TCP/IP". You may read and set the parameters of
the control unit and all inserted plug-in modules via the expanded
access.
4.2.2 Module addresses
The MGC-PRO control unit is modularly built. Every plug-in module
has a unique basic address. The module address is the sum of the
basic address and slot number. This enables operation of several
equal plug-in modules like two detector modules in the same
control unit.
Basic
address
Module
0x01
0x02 MGC logic and motor control
0x09 Detector module
0x18 Radio module
0x20 Ethernet Module
0x28 RS485/422 module
Table 11: Module addresses
The RS485/422 modules thus can have the addresses 0x28 to
0x2F. To be able to access parameters of the RS485/422 module,
the module address must be known.
4.2.3 Supported commands
NOTE!
For more information, refer to reference document
"CIA309-1/ -2, Interfacing CANopen with TCP/IP".
See page 6, chapter 1.3 "Reference
documents".
5815,0003EN / Version 00 17

RS485/422 MGC-PRO MicroDrive
Modbus interface
18 5815,0003EN / Version 00
The RS485/422 module supports only the SDO commands defined
in document CiA DS 309, section 4.1.
Simple transfer
Default network number
Default data type of the protocol
Refer to CiA DS 309-2, 3.2.3.4.2 Protocol control.
4.2.4 Examples
Reading cycle counter – request
Meaning Value
ADU Address 01
Function Code (encapsulated interface) 2B
MEI Type “CANopen" 0D
Protocol Control 00
Protocol Option Fields Reserved Field 00
Node ID 01
Hi 21
Index Lo 01
Sub-index 01
Hi 00
Starting Address Lo 00
Hi 00
PDU CAN
CiA
DS309
Number of data values Lo 04
93
ADU CRC-16 BE
Reading cycle counter – response Description Value
ADU Address 01
Function Code (encapsulated interface) 2B
MEI Type 0D
Protocol Control 00
Protocol Option Fields Reserved Field 00
Node ID 01
Hi 21
Index Lo 01
Sub-index 01
Hi 00
Starting Address Lo 00
Hi 00
Number of data values Lo 04
Byte 1 (LSB) 65
Byte 2 00
Byte 3 00
PDU CAN
CiA
DS309
Data Values
(0x00000065 =
101 cycles)
Byte 4 (MSB) 00
53
ADU CRC-16 AC
Table 12: Example "Reading cycle counter", request and response

RS485/422 MGC-PRO MicroDrive
Modbus interface
5815,0003EN / Version 00 19
Setting programme mode –
request
Meaning Value
ADU Address 01
Function Code (encapsulated interface) 2B
MEI Type 0D
Protocol Control 01
Protocol Option Fields Reserved Field 00
Node ID 01
Hi 21
Index Lo 04
Sub-index 01
Hi 00
Starting Address Lo 00
Hi 00
Number of data values Lo 01
PDU CAN
CiA
DS309
New Value 05
6C
ADU CRC-16 C2
Setting programme mode –
response
Description Value
ADU Address 01
Function Code (encapsulated interface) 2B
MEI Type 0D
Protocol Control 01
Protocol Option Fields Reserved Field 00
Node ID 01
Hi 21
Index Lo 04
Sub-index 01
Hi 00
Starting Address Lo 00
Hi 00
PDU CAN
CiA
DS309
Number of data values Lo 00
C3
ADU CRC-16 ED
Table 13: Example "Setting programme mode", request and response

RS485/422 MGC-PRO MicroDrive
Modbus interface
20 5815,0003EN / Version 00
Reading device name module 1 –
request
Meaning Value
ADU Address 01
Function Code (encapsulated interface) 2B
MEI Type 0D
Protocol Control 02
Reserved Field 00
Protocol Option Fields
Encoded Data 50
Node ID 01
Hi 10
Index Lo 08
Sub-index 00
Hi 00
Starting Address Lo 00
Hi 00
PDU CAN
CiA
DS309
Number of data values Lo 40
04
ADU CRC-16 F6
Other manuals for MGC-PRO
1
Table of contents
Other Magnetic Autocontrol Controllers manuals