background image

CNI proprietary protocol commands

05-10-2007

CNI Engineering S.r.l.

45

E.2

The RM850 hand held terminal

E.2.1

Numbering of keys

The terminal is equipped with a maximum of 32 keys. The keys are numbered starting from the bottom
up and from left to right as shown in Figure 3.

Figure 3: Numbering of keys on the

RM850 hand-held terminal

E.2.2

Numbering of LEDs

The terminal is equipped with a maximum of 12 LEDs. These are numbered in the same way as the
keys.

Figure 4: Numbering of LEDs and overrides on the

RM850 hand-held terminal

E.2.3

Numbering of overrides

The terminal is equipped with 2 overrides. These are numbered as shown in Figure 4, and turn
clockwise to increase setting.

8

4

1

12

9

Override 1

Override 2

12

3

2

20

18

9

1

11

10

17

19

4

Summary of Contents for RM85x

Page 1: ...508911 Fax 39 051 6508912 Info cnicnc com www cnicnc com Serial Communication Protocols DESCRIPTION The RM85x family of hand held terminals communicate with a remote controller over an EIA standard RS...

Page 2: ...05 10 2007 UD CNI D Update List Revision Added Deleted Modified V 01 CNI Engineering S r l No part of this manual may be reproduced or transmitted in any form or by any means electronic or mechanic i...

Page 3: ...ntation Dept CNI Engineering S r l Via Carpanelli 24 40011 Anzola dell Emilia Bo Italy Tel 39 051 6508911 Fax 39 051 6508912 Info cnicnc com www cnicnc com Document code Document revision Document iss...

Page 4: ......

Page 5: ...ll 4 3 1 6 Cursor up with scroll 4 3 1 7 Cursor down without scroll 5 3 1 8 Cursor up without scroll 5 3 1 9 Cursor right 6 3 1 10 Cursor left 6 3 1 11 Backspace 6 3 1 12 Position cursor 7 3 1 13 Tab...

Page 6: ...est 18 3 5 4 Exit VT100 protocol 19 3 6 I O commands 19 3 6 1 Switch LEDs 19 3 6 2 Monitor keys 20 3 6 3 Monitor knob 21 3 6 4 Monitor overrides 22 4 CNI proprietary protocol commands 23 4 1 1 Positio...

Page 7: ...RM851 hand held terminal 44 E 1 1 Numbering of keys 44 E 1 2 Numbering of LEDs 44 E 1 3 The knob 44 E 2 The RM850 hand held terminal 45 E 2 1 Numbering of keys 45 E 2 2 Numbering of LEDs 45 E 2 3 Numb...

Page 8: ...TABLE OF CONTENTS 05 10 2007 CNI Engineering S r l iv...

Page 9: ...XOFF character 0x13 to the master to request it to stop transmitting as quickly as possible Once an XOFF character has been sent and the reception buffer has dropped below 16 characters again the term...

Page 10: ...e transmitted is 68 This number does not include the control characters in the packet 2 2 4 Node address The second byte of each command identifies the target terminal s node address as configured on...

Page 11: ...4 2 0x32 05 5 0x35 06 h 0x68 3 1 2 Cursor off This command stops the cursor blinking leaving it invisible on the display Sequence ESC 2 5 l Byte Command Response 01 ESC 0x1b 02 0x5b 03 0x3f 04 2 0x32...

Page 12: ...Response 00 ESC 0x1b 01 E 0x45 3 1 5 Cursor down with scroll This command moves the cursor to the next row after the row on which it is currently positioned leaving it in the same column If the curso...

Page 13: ...the next row after the row on which it is currently positioned Pn 1 Byte Command Response 00 ESC 0x1b 01 0x5b 02 1 0x31 03 B 0x42 3 1 8 Cursor up without scroll This command moves the cursor up in th...

Page 14: ...C 0x43 3 1 10 Cursor left This command moves the cursor to the left along the row on which it is currently positioned The number of columns moved is determined by the parameter Pn If Pn is omitted or...

Page 15: ...mns are numbered 1 to 20 starting from the left Sequence ESC Pn r Pn c H Example To move the cursor to row 2 column 12 Pn r 2 Pn c 12 Byte Command Response 00 ESC 0x1b 01 0x5b 02 1 0x31 03 0x3b 04 1 0...

Page 16: ...ition For each character received the cursor moves one column to the right along the row on which it is currently positioned until it reaches the last column on the display If the cursor is already lo...

Page 17: ...l commands 05 10 2007 CNI Engineering S r l 9 Example To send the string Rm 851 Byte Command Response 00 R 0x52 01 m 0x6d 02 0x2d 03 8 0x38 04 5 0x35 05 1 0x31 The figure below shows what characters a...

Page 18: ...ow of the next scroll area Sequence ESC Pn r1 Pn r2 r Example To set the end of the scroll area between the second and third rows Byte Command Response 00 ESC 0x1b 01 0x5b 02 2 0x32 03 0x3b 04 3 0x33...

Page 19: ...ESC 0x1b 01 0x5b 02 2 0x32 03 5 0x35 04 m 0x6d 3 2 7 Insert characters This command inserts the number of blank characters 0x32 determined by the parameter Pn Blank characters are inserted starting f...

Page 20: ...he cursor is currently positioned Byte Command Response 00 ESC 0x1b 01 0x5b 02 1 0x31 03 L 0x4c 3 3 Character delete commands This group of command lets you delete characters parts of rows or even a c...

Page 21: ...0x30 03 K 0x4b 3 3 3 Delete from start of row This command deletes all characters from the start of the row to the current cursor position It does not change the position of the cursor Sequence ESC 1...

Page 22: ...01 0x5b 02 0 0x30 03 J 0x4a 3 3 6 Delete from start of display This command deletes all characters from the start of the display first row first column to the current cursor position inclusive It does...

Page 23: ...he cursor Sequence ESC Pn M Example To delete 2 rows starting from the row on which the cursor is currently positioned Byte Command Response 00 ESC 0x1b 01 0x5b 02 2 0x32 03 M 0x4d 3 4 Information req...

Page 24: ...x1b ESC 0x1b 01 0x5b 0x5b 02 6 0x36 2 0x32 03 n 0x6e 0x3b 04 9 0x39 05 R 0x52 3 4 3 Request communication parameters This command requests the terminal to return the current communication parameters S...

Page 25: ...0 0x30 11 0x3b 12 3 0x37 13 6 0x32 14 0 0x30 15 0x3b 16 1 0x31 17 0x3b 18 0 0x30 19 x 0x78 3 4 4 Request terminal attributes This command requests the terminal to return its identifying attributes Se...

Page 26: ...roll area set between first and last rows of display fixed non blinking characters Sequence ESC c Byte Command Response 00 ESC 0x1b 01 c 0x63 3 5 2 Cancel escape sequence This command cancels any esca...

Page 27: ...Sequence ESC J Byte Command Response 00 ESC 0x1b 01 0x3b 02 0x3f 03 J 0x4a 3 6 I O commands 3 6 1 Switch LEDs This command switches the terminal s LEDs on or off The first parameter Pn e switches the...

Page 28: ...means that the key is pressed 0 means it is released Parameter Pn 2 identifies the key that has changed state This parameter can have any value from 1 to 32 Parameter Pn 3 is the 16 bit CRC for all ch...

Page 29: ...ue becomes 65535 If the parameter value is 65535 and the knob is turned clockwise the value becomes 0 Parameter Pn 2 identifies the knob that has changed state This parameter can only have the value 1...

Page 30: ...o 255 Parameter Pn 2 identifies the override that has just changed state This parameter can have a value of either 1 or 2 Parameter Pn 3 is the 16 bit CRC for all characters sent up to and including t...

Page 31: ...Cursor off 1 Cursor on 2 Cursor blinking Byte Command Response 01 STX STX 02 Node Node 03 0x08 0x0 StatusBit 04 CmdCursorPosit CmdCursorPosit 05 0x00 0x00 06 CursorAttribute CursorAttribute 07 Cursor...

Page 32: ...9 First character ETX 10 Fourth character 11 Third character 2 n 6 2n th character 2 n 7 2n 1 th character 2 n 8 CRC 2 n 9 ETX Example To write the string abcde in blinking characters at position 16 o...

Page 33: ...Command Response 01 STX STX 02 Node Node 03 0x08 0x0 StatusBit 04 CmdDelRow CmdDelRow 05 0x00 0x00 06 0x00 0x00 07 RowsBit RowsBit 08 CRC CRC 09 ETX ETX Example To delete the first row from the displa...

Page 34: ...ode Node 03 0x08 0x0 StatusBit 04 CmdScroll CmdScroll 05 0x00 0x00 06 NRowsScroll NRowsScroll 07 ScrollUp ScrollUp 08 CRC CRC 09 ETX ETX Example To scroll the display of the terminal at node address 0...

Page 35: ...it by bit status for keys 25 to 32 1 1st override status 2nd override status High byte of knob status Low byte of knob status Example To send the read I O command to the terminal at node address 0 twi...

Page 36: ...gh byte of message code 07 0x00 Low byte of message code 08 CRC CRC 09 ETX ETX Example To read the message in the terminal at node address 0 encoded 0x4003 alarm for incorrect command received Byte Co...

Page 37: ...nstant the command is sent Byte Command Response 01 STX STX 02 Node Node 03 0x08 0x0 StatusBit 04 CmdReadChar CmdReadChar 05 0x00 0x00 06 0x00 0x00 07 CharacterPosition CharacterRead 08 CRC CRC 09 ETX...

Page 38: ...r CmdGetVer 05 0x00 0x00 06 0x00 HighByteVersion 07 0x00 LowByteVersion 08 CRC CRC 09 ETX ETX Example To read the version of the firmware in the terminal at node address 0 which is 1029 0x0405 Byte Co...

Page 39: ...ble meanings of the response Type returned Terminal type Bus type 0x0200 RM85x ENET 0x0201 RM85x RS485 0x0202 RM85x CAN 0x0203 RM85x RS232 VT100 Example To read the type of the terminal at node addres...

Page 40: ...00 06 0x01 High part of parameter code 0x01 High part of parameter code 07 0x0f Low part of parameter code 0x0f Low part of parameter code 08 0x04 High part of parameter value 0x99 CRC 09 0xb0 Low par...

Page 41: ...Low part of parameter value 10 CRC CRC 11 ETX ETX Example To read the value of the parameter that determines character blinking frequency code 0x010f from the terminal at node address 0 currently set...

Page 42: ...x0 StatusBit 04 CmdStartVt100 CmdStartVt100 05 0x00 0x00 06 0x00 0x00 07 0x00 0x00 08 CRC CRC 09 ETX ETX Example To restore VT100 protocol to the terminal at node address 0 Byte Command Response 01 0x...

Page 43: ...Read flash memory This command reads any chosen address in the terminal s flash memory The address can range from 0x0000 to 0x7fff Example Byte Command Response 01 STX STX 02 Node Node 03 0x08 0x0 St...

Page 44: ...x08 0x0 0x0 StatusBit 04 0xa8 CmdSampleVar 0xa8 CmdSampleVar 05 0x00 0x00 06 0x04 Variable 1 code 0x04 Variable 1 code 07 0x05 Variable 2 code 0x05 Variable 2 code 08 0x5e CRC 0x56 CRC 09 0x03 ETX 0x0...

Page 45: ...sample 1 variable 1 09 0x03 ETX Low part of sample 1 variable 1 10 High part of sample 1 variable 2 11 Low part of sample 1 variable 2 12 High part of sample 2 variable 1 13 Low part of sample 2 varia...

Page 46: ...eter RESERVED7 16 bit 0 32768 32767 0x0107 Reserved parameter RESERVED8 16 bit 0 32768 32767 0x0108 Reserved parameter RESERVED9 16 bit 0 32768 32767 0x0109 Reserved parameter RESERVED10 16 bit 0 3276...

Page 47: ...ghth row FONT0_3 16 bit 0 0 7967 0x0118 The low byte forms the first row of pixels of the second character The high byte forms the second row FONT1_0 16 bit 0 0 7967 0x0119 The low byte forms the thir...

Page 48: ...0 0 7967 0x0124 The low byte forms the first row of pixels of the fifth character The high byte forms the second row FONT4_0 16 bit 0 0 7967 0x0125 The low byte forms the third row of pixels of the fi...

Page 49: ...character The high byte forms the sixth row FONT6_2 16 bit 0 0 7967 0x012F The low byte forms the seventh row of pixels of the seventh character The high byte forms the eighth row FONT6_3 16 bit 0 0 7...

Page 50: ...application saved in flash memory is incorrect Download the application 0x000C ALERASINGFL A flash memory delete error occurred while the application was being downloaded Download the application agai...

Page 51: ...command response Whenever the terminal cannot implement a command it sends the following response Byte Response 01 STX 02 Node 03 0x0 StatusBit 04 CmdNACK 05 Byte 05 of sent command 06 Byte 06 of sen...

Page 52: ...ttom up and from left to right as shown in Figure 1 Figure 1 Numbering of keys on the RM851 hand held terminal E 1 2 Numbering of LEDs The terminal is equipped with a maximum of 12 LEDs These are numb...

Page 53: ...3 Figure 3 Numbering of keys on the RM850 hand held terminal E 2 2 Numbering of LEDs The terminal is equipped with a maximum of 12 LEDs These are numbered in the same way as the keys Figure 4 Numberin...

Page 54: ...on Neither the name of the Indigo Systems Corporation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission...

Page 55: ...owing disclaimer in the documentation and or other materials provided with the distribution Neither the name of the Indigo Systems Corporation nor the names of its contributors may be used to endorse...

Page 56: ...xF5CF 0xC5AC 0xD58D 0x3653 0x2672 0x1611 0x0630 0x76D7 0x66F6 0x5695 0x46B4 0xB75B 0xA77A 0x9719 0x8738 0xF7DF 0xE7FE 0xD79D 0xC7BC 0x48C4 0x58E5 0x6886 0x78A7 0x0840 0x1861 0x2802 0x3823 0xC9CC 0xD9E...

Page 57: ...83 0x1CE0 0x0CC1 0xEF1F 0xFF3E 0xCF5D 0xDF7C 0xAF9B 0xBFBA 0x8FD9 0x9FF8 0x6E17 0x7E36 0x4E55 0x5E74 0x2E93 0x3EB2 0x0ED1 0x1EF0 define ByteCRC16 v crc unsigned short crc 8 ccitt_16Table crc 8 v 255 C...

Page 58: ...held Terminals User Manual 50 CNI Engineering S r l 05 10 2007 CRC16 CalcCRC16Bytes unsigned int count char buffer int crc 0 do int value buffer crc ByteCRC16 value crc while count return crc endif _C...

Reviews: