Auto Page MA-200 Manual de Instruções Página 43

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 56
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 42
8. RS232 communication protocol
RS232 communication protocol PC colorSENSOR OT-3-...-200-20
Sensor
(colorCONTROL C4
V6.4)
- Standard RS232 serial interface without hardware-handshake
- 3-wire: GND, TX0, RX0
- Speed: 19200 baud factory setting, can be changed (example 190) to 9600, 19200, 38400, 57600, 115200
8 data-bits, no parity-bit, 1 stop-bit in binary mode, us (unsigned), MSB (most significant byte) first.
The control device (PC or PLC) has to send a data frame of 18 words to the Sensor. All bytes must be transmitted
in binary format (us, MSB). The meaning of the parameters is described in the software manual.
Info: 1 word = 2 bytes
Method:
The hardware is permanently reading (polling) the incoming byte at the RS232 connection. If the incoming word is
0x0055 (synch-word), then the 2. word (order-word) is read in, after this, 16 words (parameters) will be read.
After reading in the completely data frame, the Sensor executes the order which is coded at the 2. word (order-
word).
Format of the data
frame:
Wor d
No
.
Format
Meaning Comment:
1
Word sync-word = 0x0055 hex-code 0x0055, binary: 0000 0000 0101 0101, synchronisation word
2
Word ORDER NUMBER order word
3
Word Para POWER LED intensity (0...1000) Attention intensity in thousendth!
4
Word Para POWER MODE LED mode: STATIC, DYNAMIC coded to (0,1)
5
Word Para AVERAGE Signal averagin 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, g
16384 or 32768
6
Word Para EVALUATION MODE Evaluation mode: FIRST HIT, BEST HIT, MIN DIST, COL5 coded to (0,1,2,3)
7
Word Para HOLD[ms] Hold time 0,1,2,3,5,10,50 or 100ms
8
Word Para INTLIM Intensity limit (0...4095)
9
Word Para MAXCOL-No. Number of the colours (1,2,3,…,31)
10
Word Para OUTMODE Function of the digital output: direct/HI, binary, direct/LO coded to (0,1,2)
11
Word Para TRIGGER Trigger mode:
CONT,SELF,EXT1,EXT2,EXT3,EXT4
coded to (0,1,2,3,4,5)
12
Word Para EXTEACH External teach mode: OFF, ON, STAT1, DYN1 coded to (0,1,2,3)
13
Word Para CALCULATION MODE Calculation mode: X/Y INT, s/i M, X/Y/INT, s/i/M coded to (0,1,2,3)
14
Word Para DYN WIN LO Low limit for dynamic window when POWERMODE=dynamic (0…4095)
15
Word Para DYN WIN HI High limit for dynamic window when POWERMODE=dynamic (0…4095)
16
Word Para COLOR GROUPS Color groups enable: OFF, N coded to (0,1) O
19
Word Para INTEGRAL Signal integration (1…250)
18
Word free Must be sent as dummy (e.g. value 0)
Value ORDER NUMBER (parameter byte no. 2)
0 nop no operation
1 Save parameter from PC into RAM Cf. Example 1
2 Save one selectable row of TEACH TABLE into RAM Cf. Example 2
3 Send parameter from RAM to PC Cf. Example 3
4 Send one selectable Row of TEACH TABLE from RAM to PC Cf. Example 4
5 Send data from RAM to PC Cf. Example 5
6 Save parameter from RAM to EEPROM Cf. Example 6
7 Send connection OK to PC Cf. Example 7
8 Load Parameter from EEPROM to RAM Cf. Example 8
20 Send line ok = 0x00AA, 0x0014, 0x00AA, 15 Dummies to PC Cf. Example 20
30 Save Calibration factors RED, GREEN, BLUE from PC into EEPROM Cf. Example 30
31 Save Offset values for RED, GREEN, BLUE from PC into EEPROM Cf. Example 31
32 Send Calibration factors RED, GREEN BLUE from EEPROM to PC Cf. Example 32
50 Start or Stop an automatic send of a data frame after trigger Cf. Example 50
190 Change baud rate CF.Example190
colorCONTROL C4
42
Vista de página 42
1 2 ... 38 39 40 41 42 43 44 45 46 47 48 ... 55 56

Comentários a estes Manuais

Sem comentários