[go: up one dir, main page]

0% found this document useful (0 votes)
17 views16 pages

Ciu Prime 880

Uploaded by

kambiz pakdaman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
17 views16 pages

Ciu Prime 880

Uploaded by

kambiz pakdaman
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 16

Instruction manual

CIU Prime type 880


(CIU858 emulation)

Version 1.2
November 2000
Part no.: 4416529

Enraf B.V.
P.O. Box 812
2600 AV Delft
Netherlands

Tel.: +31 15 2698600, Fax: +31 15 2619574


Email: Info@enraf.nl
http://www.enraf.com

Offices in: Netherlands - France - Germany - Russia - UK - USA - China - Singapore

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 1


Copyright 2000 Enraf B.V. All rights reserved.

Reproduction in any form without the prior consent of Enraf B.V. is not allowed.
This instruction manual is for information only. The contents, descriptions and specifications are
subject to change without notice. Enraf B.V. accepts no responsibility for any errors that may
appear in this instruction manual.

The warranty terms and conditions for Enraf products applicable in the country of purchase are
available from your supplier. Please retain them with your proof of purchase.

Page 2
Preface

Preface
This manual has been written for the technicians involved with the
communication with the Enraf series 880 communication interface units via
CIU858 emulation protocol.

For installation and commissioning of the CIU Prime, please refer to the
related installation guide and configuration manuals. This manual
describes the communication between a CIU Prime and higher layered
systems.

Safety and prevention of damage


"Notes" have been used throughout this manual to bring special matters to
the immediate attention of the reader.

A Note points out a statement deserving more emphasis than the


general text.

Legal aspects
The information in this configuration manual is copyright property of Enraf
B.V., Netherlands.
Enraf B.V. disclaims any responsibility for personal injury or damage to
equipment caused by:

· Deviation from any of the prescribed procedures;


· Execution of activities that are not prescribed;

Additional information
Please do not hesitate to contact Enraf or its representative if you require
additional information.

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 3


Table of contents

Table of Contents
Preface .................................................................................................................................................. 3
Introduction ........................................................................................................................................... 5
Communication parameters ................................................................................................................. 6
CIU (858) address ........................................................................................................................ 6
Communication procedure ................................................................................................................... 7
Command records ........................................................................................................................ 8
CIU individual command record ......................................................................................... 8
Instrument individual command record.............................................................................. 8
Instrument group command record .............................................................................................. 9
CIU answer records ...................................................................................................................... 9
X-record (identification record)......................................................................................... 10
Time-out record ................................................................................................................ 10
Instrument answer records ......................................................................................................... 11
BCC calculation .......................................................................................................................... 12
ACK characters ........................................................................................................................... 13
Appendix A: Related documents ............................................................................................... 14

Page 4
Introduction

Introduction
The CIU Prime type 880 is the successor of the CIU type 858.

CIU Prime This unit is an interface between the field instrumentation


(e.g. 854 ATG, 873 SmartRadar, etc.) and inventory systems
(CIU Plus, PLC, ENSITE, etc.).

Field ports Up to four input boards can be installed to interface the EN-bus (BPM Bi-
Phase Mark). By replacing one or more input boards by an RS-
232C/RS485 input board, the CIU Prime can interface to the 858 CIU
(Communications Interface Unit).

Host ports Two fixed RS-232C/RS485 output boards interface to a CIU Plus, PLC,
ENSITE, etc.

Automatic polling After configuration, the CIU Prime automatically performs the polling of the
connected gauges and stores the information in a database.
For a description of the configuration and programming, refer to the CIU
Prime’s configuration manual.

For compatibility reasons most of the CIU858 protocol is implemented in


the CIU Prime. This protocol is only available on host port 2.
The CIU858 emulation mode must be enabled via the Ensite Pro
configuration program.

Received data request records from the host will be handled as follows:

· answer is generated by the CIU Prime based on information in the


database, provided that the addressed instrument is known and data is
available.
· the received record is transmitted to the addressed instrument (field
line) in case the addressed instrument is known, but no data available
in the database. The received instrument reply will be transmitted to
the host.
· in case the addressed instrument is not known, the received record is
transmitted to all field ports and wait for first reply. The received
instrument reply will be transmitted to the host.

Note:
In case of receiving time-out records from the CIU (no gauge answer)
retry 3 times to retrieve correct data from the CIU before setting an
alarm.

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 5


Communication parameters

Communication parameters
The following communication parameters are supported:

Transmission mode asynchronous, RS232-C / RS485, non-


isolated, DTE-side. only available on host port
2 of the CIU Prime.

Baudrate 1200, 2400, 4800, 9600, 19200 baud

Parity Odd or Even

Start bit 1

Data bits 7, LSB first (7 bits ASCII character)

Stop bit(s) 1

TX/RX mode Half Duplex

Turn around delay Adjustable in msec.

CIU (858) address


Two different type fieldports can be plugged in the CIU Prime:

1. EN-bus to which Enraf instruments are connected direct.


2. RS-232c to which a CIU858 can be connected.

Ad 1.:
The CIU (858) address in the CIU858 emulation is the last decade of the
decimal representation of the RTU address for host port 2. E.g. in case
RTU address is 123 -> the CIU858 emulation address is 3.

Ad 2.:
The CIU (858) address in the CIU858 emulation is the address of the
connected CIU858.

The address of the connected CIU858 may not be identical to the last
decade of the decimal representation of the RTU address of host port 2.
E.g. in case RTU address is 30, then CIU858 address may not be 0.

Page 6
Communication procedure

Communication procedure
The CIU858 uses a communication protocol based on a request/reply
schedule. The protocol consists of command records and answer records.

There are three types of command records:

· individual CIU command records


· individual instrument command records
· instrument group command records

A record consists of a data field packed in an envelope. The envelope


allows the receiver to detect the incoming record and to verify its proper
reception.

A record consists of:

STX DATAFIELD ETX BCC

In which:

STX is the Start of TeXt character (ASCII value 002).


data field data field packed in an envelope.
ETX is the End of TeXt character (ASCII value 003).
BCC is the Block Check Character.

The general form of a communication record is as follows:

STX ADDRESS(ES) TOI TOR (DATA) ETX BCC

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 7


Communication procedure

Command records
The following records can be sent to the CIU Prime.

CIU individual command record


This command is executed in the addressed CIU Prime, which sends back
an answer record.

STX N TOI TOR ETX BCC

Pos 1 : STX start of transmission


Pos 2 : N CIU address (0-9)
Pos 3 : TOI R CIU-GPU version
Pos 4 : TOR X send identify record
Pos 5 : ETX end of transmission
Pos 6 : BCC block check character

Instrument individual command record


The CIU will pass on these records (without the CIU address) to any
connected field instrument.

STX N nn TOI TOR ETX BCC

Pos 1 : STX start of transmission


Pos 2 : N CIU address (0-9)
Pos 3,4 : nn instrument address (00-99)
Pos 5 : TOI B 811, 854, 873 instrument with GPU protocol and
instruments with Gauge Type = B
C 813 MGT + instruments with Gauge Type = C
D 875 (Field Interface Unit)
E 811 instrument with external alarms and
instruments with Gauge Type = E
F 874 (Analog Input Module)
@ any type
Pos 6 : TOR see the Protocol Manual of the related instrument.
Pos 7 : ETX end of transmission.
Pos 8 : BCC block check character.

Page 8
Communication procedure

Instrument group command record


The instrument group commands are transmitted (without the CIU
address) to every connected instrument.

STX N n n TOI TOR ETX BCC

Pos 1 : STX start of transmission


Pos 2 : N CIU address (0-9)
Pos 3,4 : nn instrument address (00-99)
** indicates that the command is intended for all
connected instruments.
*n indicates that the command is intended for all
instruments ending with instrument address n
n* indicates that the command is intended for all
instruments starting with instrument address n
Pos 5 : TOI B 811, 854, 873 instrument with GPU protocol and
instruments with Gauge Type = B
C 813 + instruments with Gauge Type = C
E 811 instrument with external alarms and
instruments with Gauge Type = E
@ any instrument
Pos 6 : TOR see the Protocol Manual of the related instrument
Pos 7 : ETX end of transmission
Pos 8 : BCC block check character

The CIU will answer with a time-out record (see chapter further in this
manual) to the computer system as an acknowledgement that the
instrument group command has been transmitted to all field instruments.

CIU answer records


The following records are transmitted to the computer system after
reception of a CIU individual command record.

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 9


Communication procedure

X-record (identification record)


For compatibility reasons the X-record is implemented. A default answer
will be given.

STX N RX10LOO ETX BCC

Pos 1 : STX start of transmission


Pos 2 : N CIU address (0-9)
Pos 3...9 : RX10LOO default answer
Pos 10 : ETX end of transmission
Pos 11 : BCC block check character

Time-out record
This record will be transmitted to the computer system after an instrument
group command is transmitted to the connected field instruments. The
time-out record will also be transmitted if there was a malfunction in the
field or in case a field instrument is not responding.

STX N @ 0 ETX BCC

Pos 1 : STX start of transmission


Pos 2 : N CIU address
Pos 3 : @ type of instrument is CIU858 compatible
Pos 4 : 0 (zero)error code (default is 0)
Pos 5 : ETX end of transmission
Pos 6 : BCC block check character

Here is an example of a correct answer record:

STX 2 1 1 B B as ls IIIIIl ETX BCC

Here is an example of an erroneous answer sequence:

STX 2 1 1 STX 2 @ 0 ETX BCC

2nd 1 : last character received from the instrument without error.


2nd STX : start of time-out record indicating that the information from
the instrument is wrong.

Page 10
Communication procedure

Instrument answer records


After a correctly received instrument individual command, the addressed
instrument will answer to the CIU. This answer is passed on to the
computer system by the CIU (the CIU adds its own address to the record).

STX N n n TOI TOR data data .... data ETX BCC

Pos 1 : STX start of transmission


Pos 2 : N CIU address
Pos 3,4 : nn instrument address
Pos 5 : TOI type of instrument
B 811, 854, 873 instrument with GPU protocol and
instruments with Instrument Type = B
C 813 + instruments with Gauge type = C
D 875 (Field Interface Unit)
E 811 instrument with external alarms and
instruments with Gauge Type = E
F 874 (Analog Input Module)
Pos 6 : TOR type of record, see the Protocol Manual of the related
field instrument.
Pos 7,8 : data for the data in answer record, see the Protocol
Manual
Pos n-1 : ETX end of transmission
Pos n : BCC block check character

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 11


Communication procedure

BCC calculation
The BCC is calculated by taking the binary sum without carrying over the
seven individual data bits (exclusive or) of all transmitted bytes, according
to ANSI standard X3.28 - 1976. STX is excluded; ETX is included. The
BCC is also called the ‘horizontal parity check’.

Since the BCC summation can produce any one of the 128 code
combinations, be sure to interpret it as the BCC, not as something else.
For example if the value of the BCC is 02 (hexadecimal) do not read this
as an STX character.

Here is the example of a command record for a CIU with address 1.

STX 1 R X ETX BCC

spelled out in bits:

Char Parity b6 b5 b4 b3 b2 b1 b0 Comment

STX 0 0 0 0 0 0 1 0 Start of TeXt


(not in BCC
calculation)
1 0 0 1 1 0 0 0 1
R 0 1 0 1 0 0 1 0
X 0 1 0 1 1 0 0 0
ETX 1 0 0 0 0 0 1 1

BCC character
BCC 0 0 1 1 1 0 0 0 (calculated
over 7 bits)

Page 12
Communication procedure

Here is the answer record from the CIU to the computer system:

STX 1 R X 1 0 L O O ETX BCC

spelled out in bits:

Char Parity b6 b5 b4 b3 b2 b1 b0 Comment

STX 0 0 0 0 0 0 1 0 Start of TeXt


(not in BCC
calculation)
1 0 0 1 1 0 0 0 1
R 0 1 0 1 0 0 1 0
X 0 1 0 1 1 0 0 0
1 0 0 1 1 0 0 0 1
0 1 0 1 1 0 0 0 0
L 0 1 0 0 1 1 0 0
O 0 1 0 0 1 1 1 1
O 0 1 0 0 1 1 1 1
ETX 1 0 0 0 0 0 1 1

BCC character
BCC 0 1 1 1 0 1 0 1 (calculated
over 7 bits)

ACK characters
The computer system always initiates communication with the CIU using a
command record. After sending this record, the computer system must
wait for a reply from the CIU in the form of an answer record. After the turn
around time, an answer record may be sent.

But if the CIU is still busy preparing its reply - or if it is otherwise engaged
in field communication - the CIU transmits ACK characters about every 50
msec. These characters are an ACKnowledgement of the command
record, and show that the CIU intends to send an answer record to the
computer system as soon as possible. The time out period of the computer
system should start again on reception of an ACK character from the CIU.
When a command record is accepted and being processed (i.e. ACK-
characters are sent every 50 msec.) a new command is not accepted.

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 13


Appendix A

Appendix A: Related documents


Title

Instruction manual 880 CIU Prime


Instruction manual 880 CIU+

Instruction manual Modbus TM protocol

Instruction manual ENSITE Pro - 880 CIU Prime


Instruction manual ENSITE Pro - 880 CIU+

Instruction manual ENSITE - ENTIS Pro under Windows NT

Page 14
Notes

Instruction manual CIU Prime type 880 (CIU858 emulation) Page 15


Page 16

You might also like