Intelligent Motion Systems Modular LYNX System User Manual

Page 24

Advertising
background image

1 - 24

Modular LYNX System 12.05.2003

carriage return line feed characters that are transmitted in response to the Enter key on the keyboard
provided the ASCII setup specifies “Send line feeds with line ends”. Note that there need not be a space
between the data for the last parameter and the CR/LF. Also note that if there is only one parameter, the CR/
LF would immediately follow the data for that parameter.

The command format in ASCII mode when the control module is in Party Mode (PARTY = TRUE) would be
identical to that in Single Mode with the exception that the entire command would be preceded by the
control module’s address character (stored in DN) and terminated by a CTRL-J rather than ENTER:

<Address character><Mnemonic><white space><ASCII data for 1

st

parameter>, <ASCII data for 2

nd

param-

eter>, … , <ASCII data for n

th

parameter><CTRL-J>

B i n a r y

Binary mode communications is faster than ASCII and would most likely be used in a system design where
the communication speed is critical to system operation. This mode cannot be used with standard terminal
software.

The command format in binary mode when the control module is in Single Mode (PARTY = FALSE) is:

<20H><character count><opcode><Field type for 1

st

parameter><IEEE hex data for 1

st

parameter><0EH><Field type

for 2

nd

parameter><IEEE hex data for 2

nd

parameter><0EH> …

<Field type for n

th

parameter><IEEE hex data for n

th

parameter><optional checksum>

Note that <20H> is 20 hex, the character count is the number
of characters to follow the character count not including the
checksum if one is being used. The OpCodes for control
module instructions, variables, flags and keywords are given
in Sections 15 and 16 of this document. The Field type byte
will be one of the following based on the type of data that is
expected for the specific parameter:

<0EH> is 0E hex, which is a separator character in this mode.
Finally, the optional checksum will be included if CSE is TRUE
and excluded if it is FALSE. If included, the checksum is the
low eight bits of the complemented sixteen-bit sum of the
address field (20H here), character count, OpCode, all data
fields and separators (0E hex).

Table 5.7: ASCII Mode Special Command Characters

s

r

e

t

c

a

r

a

h

C

d

n

a

m

m

o

C

l

a

i

c

e

p

S

e

d

o

M

I

I

C

S

A

r

e

t

c

a

r

a

h

C

X

N

Y

L

o

r

c

i

M

t

a

n

o

i

t

c

A

>

c

s

e

<

y

e

K

e

p

a

c

s

E

g

n

i

n

n

u

r

ll

a

d

n

a

s

n

o

i

t

a

r

e

p

o

e

v

i

t

c

a

ll

a

s

e

t

a

n

i

m

r

e

T

.

s

m

a

r

g

o

r

p

>

C

^

<

s

y

e

K

C

+

l

r

t

C

g

n

i

n

n

u

r

ll

a

d

n

a

s

n

o

i

t

a

r

e

p

o

e

v

i

t

c

a

ll

a

s

e

t

a

n

i

m

r

e

T

.

X

N

Y

L

o

r

c

i

M

e

h

t

f

o

t

e

s

e

r

a

s

e

c

r

o

f

,

s

m

a

r

g

o

r

p

>

P

S

K

B

<

y

e

K

e

c

a

p

s

k

c

a

B

a

t

c

e

r

r

o

c

o

t

r

e

f

f

u

b

e

h

t

n

i

e

n

o

k

c

a

b

r

o

s

r

u

c

e

h

t

s

e

v

o

M

.

r

o

r

r

e

g

n

i

p

y

t

>

F

L

<

r

o

>

R

C

<

e

n

i

L

r

o

n

r

u

t

e

R

e

g

a

i

r

r

a

C

d

e

e

F

s

i

>

F

L

<

.

y

t

r

a

P

r

o

e

l

g

n

i

S

r

e

h

t

i

e

,

e

d

o

m

e

h

t

n

o

g

n

i

d

n

e

p

e

D

.

s

n

o

i

t

a

c

i

n

u

m

m

o

c

e

d

o

M

e

l

g

n

i

S

n

i

y

r

a

s

s

e

c

e

n

t

o

n

)

x

e

H

A

0

(

>

F

L

<

s

a

e

m

a

s

e

h

t

s

i

>

J

+

L

R

T

C

<

s

e

d

o

C

x

e

H

y

r

a

n

i

B

e

d

o

C

x

e

H

e

p

y

T

a

t

a

D

1

0

t

x

e

T

l

e

b

a

L

2

0

t

x

e

T

I

I

C

S

A

3

0

d

e

n

g

i

s

n

u

e

t

y

b

1

4

0

d

e

n

g

i

s

e

t

y

b

2

5

0

d

e

n

g

i

s

n

u

e

t

y

b

2

6

0

d

e

n

g

i

s

e

t

y

b

4

7

0

d

e

n

g

i

s

n

u

e

t

y

b

4

8

0

t

a

o

l

f

e

t

y

b

4

Table 5.8: Binary Hex Codes

Advertising