Table of Contents - TG Drives

Table of Contents - TG Drives Table of Contents - TG Drives

28.11.2012 Views

130 Comm, Serial communication COMM, SERIAL COMMUNICATION Group Group No. Description Comm 17 Serial Communication Interface. GENERAL EXTENDED REGISTER GROUPS The DMC 2 has a serial interface for both programming purposes and for application use. The function of the communication is defined in the Comm group. FUNCTION Comm.Node Comm.Baud Comm.TLines Comm.Mode RELATED ITEMS EEprom.0 EEprom.6 EEprom.7 EXAMPLE USAGE 2 Several DMC ’s can be connected in a ”Daisy Chain” configuration. Each unit must then have a unique address set in the Comm.Node register. The number will be shown in the prompter when using terminal mode. The speed of the communication can be set in Comm.Baud. From Version 4.x support 19200 baud The number of lines shown in the terminal window is set in Comm.TLines where 0 means no limit at all. 2 The DMC can operate in different communication modes. Standard terminal mode is set with Comm.Mode = 0. Version number of system software. Baud rate and node number. Forced run + baud + Comm.Node (baud = BaudMask: 0=75, 1=150, 2=300 aso) Number of lines and communication mode. 256*Comm.Tlines +Comm.Mode EEprom.6 Forced run Baud rate =9600 Node = 8 EEprom.6 = 128 + 16*5+8 EEprom.7 Comm.Tlines = 27 Mode = 3 EEprom.7 = 256*27 + 3 User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001

EXTENDED REGISTER GROUPS GROUP MEMBERS (GROUP 17) Group.Member Member No. Comm.Mode 0 RW Comm, Serial communication Range Ability Default The Comm.Mode at startup is determined by the LSB of EEprom.7. Useful bits to set are 0, 1, 4 and 7. Set Bit 7 for all nodes in a daisy chain, except for one node. This setting determines the default node to communicate with at startup (i.e. before the first select sequence is sent.) Bit0 (1) Output from PL program disabled. All DISP, error messages, etc. are thrown away. Bit1 (2) Computer mode enabled on serial channel and terminal mode disabled. Bit2 (4) Echo off. Special communication mode is enabled. The unit will not echo characters when typed and the DISP statement will only print the values, not the register name. Bit3 (8) Enables special behaviour of the computer mode protocoll for downloading applicaion SW. Normally the contents of the application memory is cleared by the downloadi process prior to tha actual transfer of new PL2 SW. This bit overides that behaviour so that partial download of PL2 SW is possiblee. Typically this can be used to speed up the dowmload of say a Camtable or another part of an application. The part of SW handled this way must be set to a specific part of the memory by using the .ORG directive. Bit4 (16) Xon/Xoff protocol is enabled. Xoff (Control-S) stops output; Xon (Control-Q) resumes output. If the node is deselected, the output is stopped when Xon/Xoff is enabled; it is thrown away otherwise. Bit5 (32) Output is disabled due to a received Xoff. Bit6 (64) A start of Select is detected (Control-Z) and the controller is now waiting for the next character in the sequence (the node number). Bit7 (128) Node is deselected. No text output can be made at the moment. If an output is attempted (DISP, etc.), the result is thrown away if Bit 4 = 0. If Bit 4 = 1, the result stays in the output buffer. If the output buffer becomes full, the executing DISP statement waits until the node is selected again. Comm.Baud 1 75..19200 RW Supported baud rates are: 75,150, 300, 600, 1200, 2400, 4800, 9600 and 19200. (Only from Version 4.x. The baud rate value is now checked for validity before accepted.) Comm.Node 2 0..15 RW The node number to use when using the daisy-chain option. The initial value used after power up is stored in EEprom.6.Setting User's Manual 5.1 Inmotion Technologies AB Doc. No.9032 0027 01 (B), Rev. 11.07.2001 131

130<br />

Comm, Serial communication<br />

COMM, SERIAL COMMUNICATION<br />

Group Group<br />

No.<br />

Description<br />

Comm 17 Serial Communication Interface.<br />

GENERAL<br />

EXTENDED REGISTER GROUPS<br />

The DMC 2 has a serial interface for both programming purposes and for application<br />

use. The function <strong>of</strong> the communication is defined in the Comm group.<br />

FUNCTION<br />

Comm.Node<br />

Comm.Baud<br />

Comm.TLines<br />

Comm.Mode<br />

RELATED ITEMS<br />

EEprom.0<br />

EEprom.6<br />

EEprom.7<br />

EXAMPLE USAGE<br />

2<br />

Several DMC ’s can be connected in a ”Daisy Chain”<br />

configuration. Each unit must then have a unique address set<br />

in the Comm.Node register. The number will be shown in the<br />

prompter when using terminal mode.<br />

The speed <strong>of</strong> the communication can be set in Comm.Baud.<br />

From Version 4.x support 19200 baud<br />

The number <strong>of</strong> lines shown in the terminal window is set in<br />

Comm.TLines where 0 means no limit at all.<br />

2<br />

The DMC can operate in different communication modes.<br />

Standard terminal mode is set with Comm.Mode = 0.<br />

Version number <strong>of</strong> system s<strong>of</strong>tware.<br />

Baud rate and node number.<br />

Forced run + baud + Comm.Node<br />

(baud = BaudMask: 0=75, 1=150, 2=300 aso)<br />

Number <strong>of</strong> lines and communication mode.<br />

256*Comm.Tlines +Comm.Mode<br />

EEprom.6 Forced run<br />

Baud rate =9600<br />

Node = 8<br />

EEprom.6 = 128 + 16*5+8<br />

EEprom.7 Comm.Tlines = 27<br />

Mode = 3<br />

EEprom.7 = 256*27 + 3<br />

User's Manual 5.1 Inmotion Technologies AB<br />

Doc. No.9032 0027 01 (B), Rev. 11.07.2001

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

Saved successfully!

Ooh no, something went wrong!