Spectrum-controls 2080sc-BAC Manual de usuario Pagina 32

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 56
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 31
3-14 Chapter 3: Configuring the Module
User’s Manual Pub. 0300274-01 Rev. A.0
The first step is to create Local Variables for the Main program.
The second step is to paste in the structured text generated by the Module
configuration user interface to the Main program of the CCW. Below is an
example of this Main program.
A variable called tag1 is converted to ULINT variable bacnet_convert_var
and then placed at offset 0 of the byte array table because you are writing
AnalogInput 0. If it is AnalogInput 1, the offset will be 8 as each BACNET
object instance takes 8 bytes. Variable bacnet_convert_mode is 1. This means
this is a write operation. 0 identifies a read operation:
(* 0, AnalogInput, aiaaa *)
bacnet_convert_var := ANY_TO_ULINT(tag1);
bacnet_convert_offset := 0;
bacnet_convert_mode := 1;
bacnet_convert_fn(bacnet_convert_offset,
bacnet_convert_var, bacnet_convert_mode);
(* Write Input Table to Module *)
bacnet_module_address := 112;
bacnet_module_datalen := 8;
bacnet_module_write_fn(TRUE, BACNET_MODULE_SLOT,
bacnet_module_address, bacnet_module_datalen,
bacnet_convert_fn.bac_raw_tbl);
Vista de pagina 31
1 2 ... 27 28 29 30 31 32 33 34 35 36 37 ... 55 56

Comentarios a estos manuales

Sin comentarios