Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 27 of 41

E-terminals Programming manual: 17 Communication, pages 204 to 211

Pages 204 to 211 of 335, from E-terminals Programming manual

The original document is the PDF (4.1 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.

For the Beijer Electronics AB E200

Page 204

Communication The protocol appears as follows Terminal | STX | ? | CR | LF | Weighing system | STX | Weight in kg | CR | LF | The PLC program appears as follows:

193

Page 205 read from a scan by OCR; it may hold reading errors

Communication

Initiation of command registers DO-DS5. DO = Start of the send buffer, Ki0 = Did. D2 = Start of the receive buffer, K20 = D20. D4 = End code |[CR|LF|. D5 = 0, use end code. M8002 P K 11 4 | (Mov 10 DO jy START PULSE REG SEND P K [MOV 20 D2. =O) START REG RECE. P H [Mov AOD D4 } END CODE P K (MOV 0 DS H RECE. LENGT H KAKKKKKKRERREAKEKKERAKARERERREREEERAHERERRRRREREEEE * SEND /RECETVE-SHQUENCE * KEKE KKKERERAAKRKEERAAREREREERAEEKEEEREWKUEEEREREREREEE indo kik Step 0, walt sieinttakicia ee M2 M14 = ML MO 32 H LE I/I ( STEP2 RECE. |STEP1 STEPO OK MO q K - 1 STEPO MB002 Hy |} - - INIT PULSE

194

Page 206 read from a scan by OCR; it may hold reading errors

Communication

Jndiddeesceddaidede: Step 1, send abiidddrrdeeiiics

MO mM1loOo «M2 M1 38 H EY Eqd/E { STEPO SEND |STEP2 STEP1 ACTIV E

Mi H_-} - - ! STEPL

Jodcddokieedaik Step 2, receive Wednnitikikkik

ML Mil MO M2 a3 H Rs Co STEP1 SEND |STEPO STEP2 OK M2 HE |

STEP2

HRKAKKRKKKR AAR EKER REAREKEKRERKRERERERRERREEEERRA KK * OUTPUT * KKK KAR KKRHEA IR IAKERERERAREKERERIAKRERERARERERERARAERKK kkk RRA Step 0, Walt soooetaiakkksick

First program cycle in the wait state the send "ok" signal and the receive “ok" signal are cleared. MO 4a H | [PLS M16 j- HELP RELAY M16 51 H |} (RST Mil ]+ HELP SEND RELAY OK (RST MA ]- RECE. OK

195

Page 207 read from a scan by OCR; it may hold reading errors

Communication aeeRKEEE Step 1, transmission of question *#***keee

D1O = 4, mumber of bytes (signs) which will be sent to the weighing-machine. M1 g” oH STEP1

Dl = 1, activates transmission of question to the M1

60 H | STEP1

Comparison if D1=0, if Di=0 the transmission is finished. M1

66 HE STEP1

Activate the receive buffer. ML

OR r mH STEP1 tobe Step 2, receiving weight **tikktkaak

Camparison if D3=1, if D3=1 a new weight is available. The weight in ASCII~code is placed in D21 and forward.

M2

80 H | STEP2 o

BR aR

PR pio

BYTES

Dl jh COMM.

M13 sO)

88

[END }

196

Page 208

Communication

17.3 Modem connection A modem can be used for making a connection to a personal computer. The settings for the connection are made in the Modem Setting dialog in the Setup menu.

Control block reg:

The communication is established using three control registers in a control block. The first register in the control block is defined at Control block reg in the dialog. The function of the control registers is described in the table below.

197

Page 209

Communication

Register

198

Description

Ctrl reg 0

Contains the command describing how the PLC system shall call up and establish connection. 0 Wait for command. 1-10 Call up with the phone number entered in the field Phone No 1-10. Maximum 40 characters. 11 Call up with a phone number stored in the PLC system. This phone number is stored as an ASCII string beginning in the third control register and then some following registers. The string can maximum contain 40 characters, i.e. 20 registers. All registers do not have to be used. The last register that shall be read must contain the ASCII code 0. 101-110 An init string is sent to the modem. Enter Hayes modem commands in the fields Phone No 1-10. Command 101 sends the string in the field Phone No 1 etc. 111 An init string stored in the PLC system is sent to the modem. Enter Hayes modem commands beginning in the third control register. See Command 11 for details. 255 Hang up command.

Ctrl reg 1

The second control register is used as a status register. This register contains the result of the modem command. The status register can contain the following: Status codes 0 Command executed successfully. 1 Dial in progress. 2 Modem established a connection. 3 Modem detected a ring signal. Error codes 101 No connection (when hanging up). 102 Modem detected lost carrier. 103 Unspecified error from modem. 104 Modem gets no dial tone. 105 Busy when dialling. 106 No answer when dialling. 107 No reply from modem. 255 Unknown error/status.

Ctrl reg 2

The terminal can call up with a phone number stored in the PLC system. This phone number is stored as an ASCII string beginning in the third control register and then some following registers. The string can maximum contain 40 characters, i.e. 20 registers. All registers do not have to be used. The last register that shall be read must contain the ASCII code 0.

Page 210

Communication Init:

Modem init string. Timeout

Number of seconds before the line is disconnected at inactivity. Default is 30 seconds. Times between 5 and 600 seconds can be stated. Dial mode:

Select between Pulse and Tone. Phone No 1-10:

Complete phone number for call up. Maximum 40 characters.

199

Page 211

Communication

200