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

The text of a manual · part 10 of 20

M-Drive: M-Drive 7 Serial Comm, pages 69 to 76

Pages 69 to 76 of 148, from M-Drive

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.

Filed in the catalog under the Fenner M-TRIM-2 and Contrex M-TRIM-2

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

DATA INQUIRY - M-DRIVE RESPONSE

CHAR # 1 2 3 4 5 6 7 8 9 1G 11 12 Dev# | Dev#| ERROR Par#]Par#! DATA] DATA] DATA] DATA /DATA DESC. | STX} 18s] 1s | CODE} 18s ls 980s/180s|1@s {ls FORM | ETX @ - ASCII | STX|@-9 |9-9 |DEL [g-9 G~9 | G-9 |G-9 |G-9 |g~9 ig-7 lETx 39~-| 36-[" 49- [39- 38-| 38-] 38-| 39-1 39-T 35- HEX G2 39 39 7F 39 39 39 39 39 39 37 123

CHARACTER 1: STX The leading character is the ASCII STX.

CHARACTERS 2 & 3: DEVICE NUMBER

The device address is echoed back.

CHARACTER 4: ERROR CODE

The Error Code is transmitted back as appropriate. See Parameter Send - Error Code for the bit pattern of the error code.

CHARACTERS 5 & 6: PARAMETER NUMBER

The Parameter Number is echoed back.

CHARACTERS 7 TO 10: DATA

This is the requested data for the selected parameter. See Data Explanation below.

CHARACTER 11: DATA FORMAT

This code tells how to interpret the returned data for positive, negative, and decimal point location.

Refer to Parameter Send - Data Format for the coding of this character.

CHARACTER 12: ETX

The message always terminates with the ASCII ETX character.

Page 7-9

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

DATA EXPLANATION

Most data returned by the M-Drive in response to a Data Inquiry command can be easily interpreted via the Data and Data Format fields. However, a few variables return an eight bit coded response which must be decoded to allow interpretation. In general this number is between "0" and "255" decimal and is received as a four character ASCII representation of the decimal number. As an example, the bit structured value 1011011 binary = 183 decimal, and would be received as 0 1 8 3 ASCII or 30 31 38 33 HEX. This data structure applies to the following variables: MV-52, MV-53, MV-54 and CP-73,

To interpret an eight bit coded number, first convert it to binary using Table 7-2 on Page 7-11, Then refer to the appropriate Figure below to identify the M-Drive information.

817]16]/5}]4a4/]3]2]i4

T 1=Ramp Enable/0=Ramp Disable

1=Keypad Enable/0=Keypad Disable

1=Local/0=Computer

1l=Sec Setpoint #3/0=Sec Setpoint #4

1=Pri Setpoint #1/0=Pri Setpoint #2

1=Closed Loop/0=Open Loop

1=(Don't Care)

1=Primary/0=Secondary

Figure 7-1: MV-54 Interpretation

As above, assume that 183 is returned by the M-Drive in response to MV-54 Data Inquiry Command. Using Table 7-2, the number 183 converts to 10110111:

1 .e) 1 1 0 1 1 1 (183)

8 7 6 5 4 3 2 1

Using Figure 7-1 above, 183 can now be interpreted to indicate the following M-Drive Status: Primary Mode, Closed Loop, Primary Setpoint #1, Secondary Setpoint #4, Local, Keypad Enable and Ramp Enable.

Page 7-10

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

i-Z eBeg

TUtttttt BTITTTTtt TOTTTITt BBITTTTL TTATITt ATSTTITTT TROTITTT QGGTtTTT TTTATTTT OTTATTTT TSTSTTTT OOTOTTTT TTAOTTIT BTASTTIT TasaaTTtt BOOBTTTIT TITTSTTT OTTTSTTT THTTStTt BATTSTtt TISTSTTT OTsaTsattt TOOTSTTT BOGTATTT TTTOATTT BtTASTTt TOTAaTTT BATSaTTT TTBASTTT BTASUOTTT THBBSTTT BOGsBTTT

TUTTTtTts OTTTTTTA TOTTTTTA BOTTTT tA TTatttts OTOTTtts TABTITTS BBaTTTTs TITATTTo OTTAaTTTA T8TAaTTTs SAaTOTTTS TIASTTTS sTOsTTTA TasetTTs eeenttts TITTStts OTTTettsa THTIOTTS OSTTOTTS TIBTSTTS atatatts Tastetta seBTAaTTts Tttaettsa STTsatts TaTtestts osToetta TIsestts d1Best ts TaggeT ts se9eegTTA

UOISIBAUOD Areulg 0} fewIoEq :z-2 812)

SSz a4 4 aT a Tsz aSz 6ee Bde Lez 9ve Sbz ada i 4 cvs TRE Bde 6Ez BES Lt 9€Z Ste ver eee cee a4 BETS 622 8z2 Lez 92z SCZ cas

Let 9ZT $eT veT eet zeTt Tet 8cT 6TT BtT Ltt ott STtT ett ETT ett TTT @TT 68T 8BT £9T 9eaT Sot vOT eat cBT Tat ast

66

86

46

96

TTTTtSatt attttatt TOTTTSatTT OBTTTATT TTSTTSTT BISTTStT TOBTTStT BBSTTSTT TTTA@TStIT OTtaTatt TOTSTSTT BETSTSTT TTSSTSIT BTOSTHTT TOBBTRIT SAGGTSIT TTUTTSSTT OTTTBBTT TOTTSStT OaTTABTT TTOTABTT BTATHSTT TOBTBOTT OBATAGtTT TTT@SeBTT GTTAGSTT THTaestt SBTOOSTT TTBAGBTT BTaeo8tt TAGBSBTT aesgga0TT

TITttats OTTTtatgs TaTttats seTtttets TTSTtTete stettsts TROTTITS agattatea TUTstaTs OTtetata Tatatats aeTetTsts Tlgstsats aeteatsts TeeeaToTS sasaTats TTTTaets aTttagts Tatteste BOT TaSTo Ttsteaets otetaets TABTHOTS Bestests TTTHaaTS SatTsa9Ts TeTeeaaTta Batseets TTse9aTs otgeseTa TeeneasTs eeaus0Ts ete tte T2e Bez 6T2 8Tt L£T@ 9Tze STté Lats ete zT2 TTz ote 68% BBs Laz 998c Sz par £8e az Tae a2 66T 86T L6T 96T S6T P6T £6T c6T

$6 v6 £6 76 T6 86 68 88 28 98 s8 V4: €8 ra | Ts 68 64 BL Lh 9Z Si PL CL ZL Td BL 69 a9 49 99 $9 +9

TIUttttTat BITTTtat TOTTTTSt BSTITTsaT TTSTTTSst OTaTTTat TBSTTtTat OBettTat TTTSt Tat GTTSTTST TaTStTat Botatitat TTSet tat OTBATTBT TOBSTTBT Gage TTat TTTTSTSTt Otttatat THTtoOtaT OBTTSTat TItsTstat OTaToTet TOOTATST BPATHOTAT TUTsatst STTaatat TAHTOSTST BHTOATAT TTO@ATST OTBSBTAT THSeOTOT BOSSE TAT

TTITtttse SsTttttae TSTTI tas OsTTttas Ttett tag aTtetttaa TaaTtToe oseTttae TTtettae OTTattas Tatattas BaTaTTap TTseT Tae stat tas TaesgT Tas bagsTtaa TTTTs Tae BaTtTtates Tat tates estTetag TIstatea OTstaTag Testatage aastateo TUToetaa sTTeatea Tatsateg oatestaa Ttasates aTaaeteg Tasagtes sageaTes

T6T a6T 68T set cet 98T SBT vet €BTt cet Tat 88T 6éT BLT Lit 9LT SLT FLT Ect Lt Tat gLt 69T 8oTt Lot 99T S9T POT €9T zot ToT @9T

£9 zg T9 89 6S as 4s 9S ss eg zs Ts aS 6h Br Ly oF SP ad ee tr Tr ar 6E ge Le 9E SE vE €€ ze

TITTtset STItTast TATTTSST BBTT SIT TTSTTIST STAITTSST TOOTTBAT OOSTTBST TITSTROT BTTATaat TaTeTaat SBTAtSaT TTeataat QTesTaet THOOTABT BaasTaaT TUTTseat Btttaget TOtTAHaST BaTTAasaT TISTIOaT STAaTAIBT Tsetaeet GORTSA0T TtTtseeaeTt STTASBBT THTASBST OsTOGeeT TIteaaseTt OTeaaGHT TeeegeaT BessganT

TITTtgea

OTTTtsa0 TetTtaeg saTTtase TIiatlaae BTeTTse8 TeeT tase oeeTisag TTTataes aTTAatsoe TeTatsee onTataeg Ttgsteas sisetseo Tss8T RES agegtsaG TIttsees8 aTTteeas Tattagee aetTtages Ttateeeg aTatseea TaeTtasad sgeToeae Tttsaeae8 STTeseeO Tetaeaeeae eaTeogas TIgeseae stsagage Tageg0es sHegg000

6ST BST cst 9ST SST PST EST cSt TST ast 6FT BPT Let OFT SbT PPT ET cet ThT BeT 6ET BET LET 9ET SET PET EET ZzetT TET BET 62T 8zt

Ona NAAN

Nim Fu wo ANAAN

SRQe4 ann eyuer wo Asta

RAM aad

SANM FM Or OA

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

The following three figures provide the interpretations for the other eight bit coded variables. The technique to interpret these variables is identical to the MV-54 example demonstrated on Page 7-10,

8 7 6 5 4 3 2 1

1=High Limit

1=Low Limit l1=High Alarm

1=Low Alarm

1=Deviation 1 Alarm

1=Deviation 2 Alarm

1=Current Limit

X (Don't Care)

Figure 7-2: MV-52 Interpretation

8 7 6 5 4 3 2 1

1=Jog

X (Don't Care)

X (Don't Care)

X (Don't Care)

X (Don't Care)

1=Run

1=R-Stop

=F-Stop

Figure 7-3: MV-53 Interpretation

Page 7-12

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

Note: CP-73 indicates whether the computer has control over the listed variables.

1 indicates that the computer has control, 0 indicates the computer does not have control.

8 7 6 5 4 3 2 1

1=Ramp Enable/Disable

X (Don't Care)

=Run/Stop

1=Secondary Setpoint Select

1=Primary Setpoint Select

1=Closed/Open Loop

X (Don't Care)

1=Primary Mode/Secondary Mode

Figure 7-4: CP-73 Interpretation

Page 7-13

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

CONTROL COMMAND SEND - HOST TRANSMISSION

CHAR # 1 2 3 4 5 6 7 8 9 19 ll 12 Dev#| Dev#| MSG] Par#/Par#) DATA |DATA DATA [DATA DATA DESC. | STX| 18s} 1s |TYPE] 16s is 1900s /190s |18s |1s FORM | ETX

O-- g~ ASCII | STX| 9-9 | 9-9 1 | 9-9 4) 4) g 1 9 4) ETX 38~)| 39- 38-| 30-

HEX G2 39 39 31 38 38 36 39 39 39 38 |@3

CHARACTER 1: STX The message always begins with the ASCII STX character.

CHARACTERS 2 & 3: DEVICE NUMBER The desired M-Drive device address.

CHARACTER 4: MESSAGE TYPE Set to 1 for this message type.

CHARACTERS 5 & 6: PARAMETER NUMBER Set to 0 for this message type.

CHARACTERS 7 & 8: DATA 1000x & 100s Set to 0 for this message type.

CHARACTERS 9 & 10: DATA 10s & 1s Enter data control command character code as follows:

01 - Fast Stop

02 - Ramp Stop

03 - Run

04 - Enable Primary Mode

05 - Enable Secondary Mode

06 - Not Used

07 - Not Used

08 - Enable Closed Loop

09 - Enable Open Loop

10 - Enable Primary Setpoint 1

11 - Enable Primary Setpoint 2

12 - Enable Secondary Setpoint 3 13 - Enable Secondary Setpoint 4 14 - Ramp Disable

15 - Ramp Enable

CHARACTER 11: DATA FORMAT Set to 0 for this message type.

CHARACTER 12: ETX The message always terminates with the ASCII character ETX.

Page 7-14

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

CONTROL COMMAND SEND - M-DRIVE RESPONSE

CHAR # 1 2 3 4 5 6 7 8 9 16 11 12 Dev# | Dev#] ERROR Par#; Par#| DATA|DATA] DATA DATA | DATA DESC. | STX| 10s| 1s |CODE |16s ls 1908s/106s|16s |1s FORM | ETX

@ = G- | B= ASCII | sTx|@-9 [9-9 |pEL |g g g iG i 9 @ |ETX 30-| 30-| 40- 30-1 30-

HEX 62 39 39 7F 3G 38 38 3G 31 39 38 {63

CHARACTER 1: STX

The message always begins with the ASCII STX character.

CHARACTERS 2 & 3: DEVICE NUMBER

The device address of the M-Drive.

CHARACTER 4: ERROR CODE Error Code for the received message.

See Parameter Send - Error Code for the bit pattern to decode the error message.

CHARACTERS 5 & 6: PARAMETER NUMBER

Always 0 for this message type.

CHARACTERS 7 & 8: DATA 1000s & 100s

Always 0 for this message type.

CHARACTERS 9 & 10: DATA 10s & 1s

The command mode from the receive message is returned by the M-Drive.

CHARACTER 11: DATA FORMAT

Always 0 for this message type.

CHARACTER 12: ETX

Message always terminates with the ETX character.

Page 7-15

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

EXAMPLE PROGRAM

The following example program can be used to verify wiring and data format for the Communications Link.

246 258 260 270 288

FILENAME "“PHELP" REV 1

THIS SIMPLE PROGRAM CAN VERIFY M-TRIM/M-DRIVE COMM LINK WIRING & FUNCTION IT WORKS WITH IBM CLASS COMPUTERS WITH BASIC/BASICA/GWBASIC

‘IT ASSUMES:

' COMPUTER= COMM PORT IS #1

' - EVEN PARITY, 7 DATA BITS, 1 STOP BIT, 388 BAUD ' M-TRIM/M-DRIVE-

' - ADDRESS= 1 (CODE 79= 1)

‘ ~ BAUD= 398 (CODE 71= 1)

, ~ CHARACTER FORMAT E,7,1 (CODE 72=2)

, - JUMPER FOR COMPUTER MODE (J4-11/12)

t

‘ACTIVE PART OF PROGRAM FOLLOWS:

OPEN "COM1:399,E,7,1,RS,CS,DS,CD" AS #1 ‘OPEN COMM PORT PRINT #1, CHRS$(2);"8139112349";CHRS(3); ‘SEND MESSAGE TO CONTROLLER

AS=INPUTS (12,1) "RECEIVE REPLY AT COMPUTER B$ = MIDS(AS,7,4) "PICK 4 DATA DIGITS (7-18TH CHAR) PRINT BS "PRINT DATA DIGITS ON SCREEN PRINT AS "PRINT WHOLE REPLY STRING END

NOTE: Line 228 may require the elimination of the terms

"RS,CS,DS,CD" on certain computer models.

Page 7-16