Baumer N 155 User Manual

Interface Description N 155 Target Display Program 01
From version 2.10
Content Page
1. General information 2
1.1 Safety precautions 2
1.2 Description 3
2. Pin assignment 3
3. Interface 4
3.1 Interface data 4
3.2 Protocol 4
3.3 Check sum 5
3.4 Special features in data transfer 5
3.5 Broadcast commands 5
4. Description of commands 6
4.1 General information 6
4.2 Operating commands 6
4.3 Parameter commands and their significance 10
4.4 Identifier commands 13
4.5 Specific commands 14
5. Error signals 16
5.1 CRC error 16
5.2 Format error 16
6. Overview of commands 16
7. Technical data 17
Baumer IVO GmbH & Co. KG 03.10
Dauchinger Strasse 58-62 DE-78056 Villingen-Schwenningen Subject to modification Phone +49 (0)7720 942-0 www.baumer.com
info.de@baumerivo.com
Fax +49 (0)7720 942-900 in technic and design.
171.02.294/4
N 155
1. General information
1.1 Safety precautions
General remarks
The equipment is designed and assembled according to the prevailing regulations of technology. The equipment left the manufacturer in perfect working order and in line with all safety-relevant conditions. To maintain this status of the equipment, it is imperative to stick to the following when installing and using the device:
- use only according to the intended purpose,
- observation of any precautions regarding safety and hazards,
- observe the present manual and especially the relevant safety precautions!
Make sure that the operating manual and especially the chapter describing the safety precautions is read and well understood by the staff in charge. Supplementary to the operating instructions, ad other generally or legally relevant regulations regarding accident prevention and environmental care are to be considered and observed. This manual is a supplement to already existing documentation (data sheet, mounting instructions, catalogues).
Intended purpose of the equipment
Intended purpose of the equipment is industrial process monitoring and control in metal, wood, plastic, paper, glass and textile etc. industry. It is imperative that the equipment is applied only
- in properly installed condition and
- in line with the relevant technical data!
Any operation outside the technical specifications/parameters is improper use and in conjunction with the equipment/processes/machines to be monitored/controlled might lead to
- fatal injuries
- serious damage to health,
- damage to property or corporate equipment or
- damage to the device!
Any overvoltage the device might be exposed to at its connecting terminals has to be limited to the values stipulated in overvoltage category II (see technical data).
The device must not be operated
- in hazardous areas where is danger of explosion,
- as medical equipment or in medical areas,
- or in any applications expressly named in EN 61010!
If the device is utilized for control/monitoring of machines or processes where as the result of a failure/malfunction or incorrect operation of the device might occur
- any threats to life,
- risks of damage to health or
- any risk of damage to property or environment the corresponding appropriate safety precautions must be taken!
Do not open the housing of the device or proceed any modifications! Any modifications of the device can affect operating safety and result in danger! Do not proceed any repairs but return defective devices to the manufacturer!
Installation/commissioning
In case of any extraordinary incidents (including in the operating behaviour) that impair safety switch off the de­vice immediately. Installation must be carried out by suitably trained experts only. After proper mounting and installation the device is ready for operation
Maintenance/repairs
Always disconnect the power supply of all appliances involved. Maintenance and repair work must only be car­ried out by suitably trained experts. If troubleshooting is unsuccessful, do not continue using the device but contact the manufacturer.
.
www.baumer.com 2
N 155
1.2 Description
Mounting the target display is by using the attached mounting plate that is fixed at the machine by using two screws. The target display can be hooked onto the brackets provided at the mounting plate. The position data will not get lost even in case of power failure (min. 10 years). The current position value is indicated as running value in the two-line LCD display with backlight (2 x 5 digits, numeric). Optionally the target received by the control unit (master) can be indicated simultaneously in the same display. Two arrows show the editing engineer the turning direction in order to align current value with target. As soon as the current value is in coincidence with the target and within the tolerance window, the target will disap­pear. Programming the relevant parameters at the master enables the display to be turned by 180° to allow ver­tical installation of the target display. Connecting the target display is by the help of an M8 connector. Power supply of all target displays connected is by the same cable directly by master. Programming of target display by master only.
target display
arrows indicating the direction
display „current value“
enter key
2. Pin assignment
Terminal Assignment Wire color DIN47100
Pin 1 Tx/Rx-, RS485 white orange
Pin 2 Tx/Rx+, RS485 brown brown
Pin 3 sensor supply +24 V yellow red
Pin 4 sensor supply 0 V green black
1
2
3
4
connector M8
IEC757
2
4
1
3
mating connector M8
www.baumer.com 3
N 155
Terminal Assignment Wire color DIN47100
IEC757
Pin 1 sensor supply +24 V yellow red
Pin 2 sensor supply 0 V green black
Pin 3 -- -- --
Pin 4 Tx/Rx+, RS485 brown brown
Pin 5 Tx/Rx-, RS485 white orange
3
4
2
1
5
2
1
connector M16
Connect power supply that is free from interference emission. The supply must not be used as parallel supply of drives, shields, magnetic valves, etc. Apply DC according to terminal assignment power supply: 24 VDC ±10 %
Shield
Use shielded cables only. The cable shield must be grounded at the machine (two examples each depending on the cable, see drawings).
3
4
5
mating connector M16
3. Interface
3.1 Interface data
Type: RS485
Baud rate: 19200
Parity: No
Data bits: 8
Stop bits: 1
Handshake: No
Check sum: Yes (CRC)
Lag time response*: 1...16 ms
3.2 Protocol
The target display operates with ASCII protocol (clear text protocol). Depending on the command, the volume of the protocol varies between 5 and 17 bytes.
Byte Hex-Code Significance Value range
1 01H SOH = header token fix on 01h 2 XXh Adr = address 00...31dez + 20h Offset (address 00 = 20h) 3 XXh Cmd = command code defined commands
4-n [XXh..XXh] [Data] = data 20h-7Fh n+1 04h EOT = footer token fix on 04h n+2 XXh CRC = check sum 00h...FFh
* To avoid Bus collisions, a minimum time lag in responding of 1 ms
is imperative, i.e. the time elapsed between the last bit of the query
and sending the 1st bit of the N 155 response. Important: Please consider that due to the abovementioned minimum time lag of 1 ms in responding the Bus switching time
after having sent the last bit must not exceed 1 ms.
www.baumer.com 4
N 155
3.3 Check sum
To support an error-free data transmission, a check sum byte CRC is added after the footer token (EOT) to the string to be transferred. Upon reception of a command the CRC byte received is crosschecked with the self­calculated CRC byte.
Algorithm:
1) Reset check sum byte.
2) Rotate check sum byte by 1 bit to the left.
3) Link result to first data byte XOR.
4) Rotate result by 1 bit to the left.
5) Link result to the second data byte XOR. : x) Rotate result by 1 bit to the left. y) Link result to the last data byte (always 04H) XOR. z) Add result as CRC after the footer token (04H) to the sending string.
Note:
1101 0000 RL 1010 0001 Important: Bit 7 is being shifted into bit 0 during rotation
Example:
Transmission string w/o CRC = 01h 20h 43h 04h CRC-Byte = 0Ah
0000 0000 RL 0000 0000 XOR 0000 0001 (01h) = 0000 0001
0000 0001 RL 0000 0010 XOR 0010 0000 (20h) = 0010 0010
0010 0010 RL 0100 0100 XOR 0100 0011 (43h) = 0000 0111
0000 0111 RL 0000 1110 XOR 0000 0100 (04h) =
Legend: RL = rotate left; XOR = non-equivalence link
0000 1010
= CRC
3.4 Special features in data transfer
For reasons of compatibility and independent from the number of digits provided in the display, the complete multicon system features the same data volume (refer to chart „overview of commands). For example, com­mand “R” (read current value) comprises 6 bytes as data volume to be transferred whilst it is a 5-digit display only.
3.5 Broadcast commands
Some specific commands are defined as so-called broadcast commands. As soon as such a command is sent by master to identifier 99, the command will be accepted by each N 155 in the network. Each individual target display will accomplish the respective function but will not return any confirmation to the master.
www.baumer.com 5
N 155
4. Description of commands
4.1 General information
The following is describing the individual interface commands broken down into the four groups below:
- operating commands [ commands required during operation ]
- parameter commands [ commands serving for parameterization ]
- identifier commands [ commands for indication or alteration of the device identifier (address)]
- specific commands [ commands for specific functions as device reset or read version number]
The following abbreviations will be applied:
SOH = Start of header (header token) EOT = End of transmission (footer token) Adr = device identifier including offset 20h Cmd = Command data = data being sent or received
4.2 Operating commands
4.2.1 Read current value „R“ (52h)
This command is for reading the 5-digit current value (lower display line). Data volume is always 6 bytes. In case of a negative value, the negative “-“ sign (2Dh) together with 5 data bytes will be returned. Positive values are depicted by 6 data bytes without sign. Values of less than 5 (4) digits will come with preceding zeroes. Please note that the current value is always of 5 digits (refer also to chapter “Special features in data transfer”).
Example 1: Read current value (current value = -32.50
Send
Response
Example 2 Programming the current value (new current value = 75.50)
Send
Response
4.2.2. Read / write target (profile) „S“ (53h)
This command is for reading the presently active target or for programming respectively reading a specific tar­get. The data are composed of profile number (2 bytes) and target (6 bytes). Important: Negative targets are transferred as 5 digit numbers (see example no. 3). Please consider that the targets are always of 5 digits only.
Example 1: Read active target (current profile number = 12; target = 12.50)
Send
Response
Response upon clearing all targets:
Response
SOH Adr Cmd EOT CRC
01h 20h 52h 04h 40h
SOH Adr Cmd current value = -32.50 EOT CRC
01h 20h 52h
SOH Adr Cmd current value = 75.50 EOT CRC
01h 20h 52h
SOH Adr Cmd current value = 75.50 EOT CRC
01h 20h 52h
SOH Adr Cmd EOT CRC
01h 20h 53h 04h 2Ah
SOH Adr Cmd Profil-Nr. = 12 target = 12.50 EOT CRC
01h 20h 53h
SOH Adr Cmd Profil-Nr. = FFh target = FFFFFFh EOT CRC
01h 20h 53h
2Dh 30h 33h 32h 35h 30h
30h 30h 37h 35h 35h 30h
30h 30h 37h 35h 35h 30h
31h 32 30h 30h 31h 32h 35h 30h
3Fh 3Fh 3Fh 3Fh 3Fh 3Fh 3Fh 3Fh
04h 54h
04h C9h
04h C9h
04h 3E
04h 2Ah
www.baumer.com 6
Loading...
+ 11 hidden pages