Herunterladen Diese Seite drucken

Software Description - Metz CONNECT MR-DI4-IP Bedienungsanleitung

Digitales eingangsmodul

Werbung

Verfügbare Sprachen

Verfügbare Sprachen

6. Mounting
Power down the equipment.
Electric installation and device termination shall be done by
qualified persons only, by respecting all applicable
specifications and regulations.
1
2
1. Loose the bayonet screws, remove the housing cover.
2. Break out the cable openings (inner ring for M12,
outer ring for M16 cable gland).
4.2 in. (107 mm)
3
4
3. Insert the cable gland.
4. Mark the drill holes, drill the holes and fix the housing with
2 screws on an even, smooth surface (screw 0.14 x 1.2 in.)
(3.5 x approx. 30 mm).
5
6
5. Remove the plastic sheath of the cable by approx. 2.8 to 3.2 in.
(7 - 8 cm), insert the cable through the cable gland into the
housing and tighten the cable gland.
6. Strip the wires by 0.3 in. (7 mm), (put a wire end sleeve on
stranded wires), insert it into the terminal body and press the
lever down.
7. Connect the module according to the connection diagram.
8. Put the cover on and close it.
METZ CONNECT | Im Tal 2 | 78176 Blumberg | Germany | Phone +49 7702 533-0 | Fax +49 7702 533-433
Distributed by RIA CONNECT GmbH and BTR NETCOM GmbH
Mounting instruction see www.metz-connect.com
7. Bit rate and parity setting
Bit rate and parity are set in the programming mode. A jumper is
plugged und der cover for this purpose. A connection to the bus is not
necessary.
The jumper should not connect contacts for normal operation.
Procedure:
1. Remove the cover.
2. Plug the jumper to the pin 2 and 3 of the 4 pole header (2), pro-
gramming mode is started.
3. Set the required parity and bit rate according to the chart below
with the address switches x10 and x1 (3).
BUS A-
BUS B+
Display 2
BUS A-
Jumper
RJ45
BUS B+
4 C1 3 C1
Damper 2
1
X10
X1
Damper 1
1 C1 2 C1
A2/GND
RJ45
A1/+24 V
Display1
A2/GND
A1/+24 V
4. Power-on the supply voltage; parity and bit rate are permanently
stored in the EEPROM.
5. Power-down the supply voltage.
6. Remove the jumper. Programming mode is closed.
7. Mount the cover.
Switch
1
2
3
x10
Parity
even
odd none
Switch
1
2
3
4
5
6
7
x1
Bitrate
1200 2400 4800 9600 19200 38400 57600 115200
(Bit/s)
If the settings differ from the settings specified in the chart the factory
setting applies.
Factory setting: 19200 Bd Even

8. Software description

8.1 I/O commands
„02 (0x02) Read Discrete Inputs"
Request
Valid Input Starting Address
0 .. 3
Valid Quantity of Inputs
1 .. 4
Response
Byte Count
1
Input Status
Bit0 .. Bit3 ( Bit 4 .. 7 = 0 )
Information
1= Status input closed
0= Status input open
"04 (0x04) Read Input Registers"
Request
Valid Register Starting Address 0
Valid Quantity of Registers
1
Response
Byte Count
2
Values Register
Input Status Bit 0..3 ( MR-DI4)
Values Register
Input Status Bit 0..9 ( MR-DI10)
8.2 Bit rate setting with Modbus command
Parity and bit rate have the same value as when setting them by
address switch.
If parity or baud has the value 0, no setting or storage is carried
out.
The register content is stored in the EEPROM.
"06 (0x06) Write Single Register"
Request
Valid Register Address
0x41 ( 65 )
Valid Register Value 2 Bytes
15 14 13 12 11 10 9
8
7
6
0x53
Parity
8
Bit 15-8: Magic-Number 0x53 = 83 as protection against
accidental writing.
The command will be further analysed only with this
number.
Bit 7-4
1
2
3
Parity even odd none
Bit 3-0
1
2
3
4
5
Bit rate 1200 2400 4800 9600 19200 38400 57600 115200
Continuation Software description
Response
Echo of Request
Example for a frame:
Slave address
Function
Register address Hi
Register address Lo
Register contents Hi
Register contents Lo
All devices can be switched simultaneously with a Broadcast com-
mand (Slave address 0x00) However, it is advised not to do so as this
can cause problems:
-
Devices from other manufacturers may have a register for
a different purpose under this address that will then
be operated in the wrong way.
-
There is no feedback from the individual devices.
Consequently the control cannot immediately recognize
if the command was correctly received.
It is safer to address and switch each device individually.
The device will then answer with the old settings of parity and bit
rate. Switching will take place only afterwards. However, the answer
can get lost if the bus is disturbed.
When all devices are switched; it is advised to check communication.
Any function of the device providing a feedback is suitable. If a single
function is to be used being independent from the process periphery
then the function „Diagnostic" sub-function „Return Query Data" is
suitable, it returns the transferred data.
If bit rate and parity setting of a device are unknown it is possible to
address the device successively with all combinations of bit rate and
parity until the device answers. Try the most likely combinations first.
Try the lower bit rates last as they take longer.
8.3 General commands
"08 (0x08) Diagnostics"
Subfunction "0 ( 0x0000) Return Query Data"
5
4
3
2
1
0
Data Field Any
Bit rate
Response: Echo of Request
Subfunction "1 (0x0001) Restart Communication Option"
Data Field 0x0000 oder 0xFF00
Response: Echo of Request
Action: Clears all Error Counters, Restarts node
Subfunction "4 (0x0004) Force Listen Only Mode"
Data Field 0x0000
No Response
Action: No response until Node Reset or Function Code 08
6
7
8
Subcode 01
Subfunction "10 ( 0x000A) Clear Counters"
Data Field 0x0000
Response: Echo of Request
Action: Clears all Error Counters
Subfunction "11 ( 0x000B) Return Bus Message Count"
Data Field 0x0000
Response: Quantity of messages that the remote device has
detected on the communications system since its last restart,
clear counters operation, or power–up.
Subfunction "12 ( 0x000C) Return Bus Communication Error Count"
Data Field 0x0000
Response: Quantity of errors encountered by the remote
device since its last restart, clear counters operation,
or power–up. (CRC, Length <3, Parity, Framing)
0x12
Setting of rotary switch (18)
0x06
Write Single Register
0x00
0x41
Bit rate and parity (65)
0x53
Magic-Number
0x15
Parity Even, 19200 Baud

Werbung

loading