background image

  6

Serial protocol (SCL)

General

Port settings

Baud rate: 300, 1200, 2400, 4800, 9600 or 19200.
8 data bits, none parity, 1 stop bit.

Protocols

Two different serial protocols may be used to control
2071. The protocol is selected in the configuraton
menu. It can be either Nokeval SCL or Ascii. In Ascii
protocol, there is no address involved, so every
display in the bus will show the same display. These
protocols are introduced in the next chapters.

SCL protocol

The SCL message consists of the actual command
supplemented with some control bytes that are
necessary to address the message to the correct
device and to detect transmission errors.

Commands for 2071

To control the display, use DISP command (use upper
case):
DISP 123456
After this command, the display will read 123456. See
more on chapter Display modes.

To control the alarm indicators A1..M2 at the front
panel, use LED command:
LED 00011X
This command will switch the three leftmost leds off
(0), light up the two next leds (1), and blink the sixth
led (X). The Conf led is not user controllable.

To read the four front panel keys, use KEYB
command:
KEYB
About this command, see chapter Reading front panel
keys.

Control bytes

The general format of SCL command packet is:
<ID>command<ETX><BCC>

The first byte sent (ID) has two purposes: it selects
the device to which the command is intended, and
indicates that a completely new command is to come.
The byte is calculated by adding 128 (or 80h in
hexadecimal representation) to the address of the
device to be controlled, that is, the most significant

bit is set. If you want to command a device in address
4, the <ID> byte will be 132 (or 84h). This is a single
byte whose value is 132, do not send individual
numbers 1, 3 and 2!

The command is one of the commands explained
previously (e.g. DISP 28.5).

ETX character means End of Transmission. It
terminates the command. It is a single byte with Ascii
value 3 (03h).

BCC is a checksum. The sender calculates it from
the command and ETX bytes using XOR operation.
The id character is not involved in BCC calculation. If
you do not want to send checksum, you must switch
it off in the 2071 menu (set BCC OFF). It is
recommended to use checksum, but sometimes it is
not possible calculate it.

An example of a complete command packet (both
characters and their Ascii values in hex shown):
<80h> D    I    S   P         0 <ETX><BCC>
  80    44x49x53x50x20x30x 03   =  1D
The x represents XOR operation in BCC calculation.

Response

2071 will respond to the command using SCL
protocol. The response message is in the following
form:
<ACK>response<ETX><BCC>
Instead, if there was errors in the transmission or in
the command, the response will be:
<NAK>errorcode<ETX><BCC>

ACK is a single byte with Ascii value 6 (06h). It
indicates that the device has accepted the command.
About ETX byte, see previous chapter.

The response is dependent on the command sent.
2071 has empty response except for KEYB
command.

BCC is calculated similarly with the command BCC,
taking all the bytes from ACK to ETX. This time 2071
will calculate the checksum, and your task is to check
it if you want to.

Error response starter NAK is a single byte with Ascii
value 21 (15h). It is followed by a single number
representing the type of error. 3 means BCC error,
while 4 indicates non-recognized command.

Содержание 2800-2071

Страница 1: ...1 Manual Model 2800 2071 for serial inputs No 011002 Nokeval...

Страница 2: ...4 Case dimensions 4 Configuration 5 Serial protocol SCL 6 Counting check sum 6 Example of control message without BCC 6 XOR function without calculator 7 Non addressable ASCII protocol 7 Display mode...

Страница 3: ...signal RS232 or RS485 You may select red or green 6 digit display Serial bus is galvanic isolated from both processor and power supply In configuration stage you can set address Baud rate and what dis...

Страница 4: ...nd holding and keys simultaneously for 2 seconds Specified instructions on pages 6 7 Configuration Resetting configuration parameters Some times it is necessary to return indicator parameters to facto...

Страница 5: ...ddressable SCL or non addressable ASCII Baud Baud rate selection 300 600 1200 2400 4800 9600 19200 Addr Serial address 0 127 SCL only Bcc Checksum selection ON used SCL only Resp Responce message sele...

Страница 6: ...ost significant bit is set If you want to command a device in address 4 the ID byte will be 132 or 84h This is a single byte whose value is 132 do not send individual numbers 1 3 and 2 The command is...

Страница 7: ...hand when displaying numerical results the Numerical mode is more flexible TEXT Mode In the Text mode 2071 doesn t process the message in any way The first received message is placed at the leftmost...

Страница 8: ...to the leftmost key 1 N pp in Koodi 1 1 2 2 3 4 4 8 If several keys are pressed simultaneously the sum of these codes is returned E g keys and the code is 4 8 C in hexadecimal When no keys is pressed...

Страница 9: ...SerialsignalRS 485looplastunitmustbeterminatedwith110ohm resistor Termination can be done on terminal connections or by connectin short cut jumper into following position Fail safe ON Terminator ON Fa...

Страница 10: ...type of meter You can change meter with pulse input to meter with current input thermocouple strain gage etc Additional slots Additional cards provide output 4 20 mA alarms serial interface BCD output...

Страница 11: ...ion cards Inputcardcontains microprocessor bus control keys control display control Eight input cards 2021 2011 2011 IN Process input 2021 MU Multi input 2031 IR Infrared sensor input 2041 SG Strain g...

Страница 12: ...12 Yritt j katu 12 Tel 3583 3424800 Fax 3583 3422066 FIN 37100 NOKIA email support nokeval com http www nokeval com Nokeval Oy...

Отзывы: