16.03.2014 Views

User Manual - JVL Industri Elektronik A/S

User Manual - JVL Industri Elektronik A/S

User Manual - JVL Industri Elektronik A/S

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

3.14 RS232 Interface<br />

3.14.5 Synchronisation<br />

During communication with the Controller, each command string must be terminated<br />

either by a (ASCII 13) or a semi-colon “;”. This tells the Controller that the<br />

command string is complete and interpretation can begin. When a checksum is used,<br />

command interpretation will not begin until the entire command line has been received,<br />

i.e. is terminated by a . A maximum of 80 characters may be sent in a single<br />

command line.<br />

If the Controller is set to use addressing (ADDR>0), the string can be terminated by "; ;"<br />

3.14.6 Checksum<br />

In industrial applications, electrical noise from motors, etc., often occurs. This noise is<br />

quite arbitrary and random and cannot be eliminated 100% even by effective electrical<br />

filtering. To ensure correct transmission of Controller commands therefore, a checksum<br />

can be used. A typical command line may be as follows:<br />

25KP=25;KI=471d<br />

Address<br />

Command no. 1<br />

Delimiter<br />

Command no. 2<br />

TT0037GB<br />

Checksum<br />

In this example, addressing is used (address 25). Two commands, delimited by a semicolon<br />

“;”, are transmitted followed by a checksum. The checksum consists of two characters.<br />

The checksum is a ‘simple’ checksum and is calculated in the following way:<br />

First the ASCII value of each of the characters in the command line is determined. These<br />

values are summed and the two least significant characters (the least significant byte) of<br />

the result’s hexadecimal value are used.<br />

The two least significant digits are converted to ASCII values and transmitted along with<br />

the command line. The actual calculation in this example is as follow:<br />

50+53+75+80+61+50+53+59+75+73+61+52+55 = 797 (decimal) = 31d (hexadecimal)<br />

The checksum is thus 1d which is sent as ASCII 49 (decimal) and 100 (decimal). The<br />

hex.characters a-f can also be sent as capitals, i.e. d can also be sent as ASCII 68 (decimal).<br />

In the event that the command string is corrupted during transmission, the checksum will<br />

not correspond and the Controller will report an error message “E9”, indicating that a<br />

checksum error has occurred. The command string must then be re-transmitted. The<br />

checksum function is activated using the CHS command.<br />

<strong>JVL</strong> <strong>Industri</strong> <strong>Elektronik</strong> A/S - <strong>User</strong> <strong>Manual</strong> - AC servocontroller AMC10/11/12 39

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!