Loading…

方法名称: configure_output

方法ID: 0x4038

方法标签: Output config.

方法描述: Configuration of analog output - The setting determines the behaviour of the output in case of failure.


  • {
  • int counter;
  • int _ivalue;
  • float _fvalue;
  • char status[3];
  • _set_device_status(0xFF,0);
  • _set_all_resp_code(0);
  • _set_xmtr_device_status(0xFF,0);
  • _iassign(16393,0x01);
  • if (_ivar_value(171) == 2)
  • _fvalue = 3.0;
  • else
  • _fvalue = 3.6;
  • do {
  • _get_dev_var_value(literal_string(274),0,16394);
  • if (_fvalue <= _fvar_value(16394) && _fvar_value(16394) <= 4.0)
  • break;
  • }
  • while (1);


请登录以获得完整内容