Black Box ACS201A Manual de usuario Pagina 9

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 10
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 8
Integration Note
9
The ABB port can be configured to receive data at 9600 Baud, 8 Data bits, 1 Stop bit, no
parity check and no flow control. Some of these settings can be modified on the controller
side. Simply make sure that they coincide with DVT settings.
4. Wait until the S4C+ controller is ready to receive the data and trigger and inspection to test
the installation.
On the S4C+ side:
1. Write a simple program to read in the ASCII characters and place them in strings.
2. Convert the data to a floating point number and store it in a local variable.
3. Run the program and trigger a DVT inspection.
4. Check the variable to verify new addition.
The following ABB Rapid program accomplishes the tasks defined above.
VAR iodev channel2;
VAR string dvtData;
VAR num dvtValue;
Open “sio1:” channel2 \Bin;
dvtData := ReadStrBin(channel 2,5);
StrToVal(dvtData,dvtValue);
Close channel2;
Line 1: VAR iodev channel2
Declares an IO device and calls it channel 2 so it can be opened and read from.
Line 2: VAR string dvtData
Sets up a string called dvtData that will be used to store information from the serial port.
Line 3: VAR num dvtValue
Declares a numeric value that can be used in the robot program to represent a position or
distance.
Vista de pagina 8
1 2 3 4 5 6 7 8 9 10

Comentarios a estos manuales

Sin comentarios