Class: NRB::BCSInterrogator::API::Ultemp

Inherits:
Endpoint
  • Object
show all
Defined in:
lib/bcs_interrogator/api/ultemp.rb

Constant Summary collapse

DESCRIPTIONS =

wiki.embeddedcc.com/index.php/Ultemp.dat

All entries in the ultemp structure have to be in the range
0 <= ultemp < 2^32
Commas are not allowed
[
  'Running Process (proc_en) (7:0)',
  'Discrete Outputs (17:0)',
  'Discrete Inputs (8:0)',
  'Temp0 * 10',
  'Temp1 * 10',
  'Temp2 * 10',
  'Temp3 * 10',
  'Temp4 * 10',
  'Temp5 * 10',
  'Temp6 * 10',
  'Temp7 * 10',
  'Temp0 Setpoint * 10',
  'Temp1 Setpoint * 10',
  'Temp2 Setpoint * 10',
  'Temp3 Setpoint * 10',
  'Temp4 Setpoint * 10',
  'Temp5 Setpoint * 10',
  'Temp6 Setpoint * 10',
  'Temp7 Setpoint * 10',
  'Current State - P0(31:24) P1(23:16) P2(15:8) P3(7:0)',
  'Current State - P4(31:24) P5(23:16) P6(15:8) P7(7:0)',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Process Timer 0 [P0:P7][T0:T3]',
  'Internal Registers (15:0)',
  'Miscellaneous
Bit 8: Alarm
Bits 7:0 : Process[7:0] Pause'
]
ENDPOINT =
'/ultemp.dat'

Instance Attribute Summary

Attributes inherited from Endpoint

#response

Instance Method Summary collapse

Methods inherited from Endpoint

#api_call, #data, descriptions, #each, endpoint, #endpoint, #initialize, #to_a, #to_h

Constructor Details

This class inherits a constructor from NRB::BCSInterrogator::API::Endpoint

Instance Method Details

#inputsObject



72
73
74
# File 'lib/bcs_interrogator/api/ultemp.rb', line 72

def inputs
  bitmasked_data 0..7, 2
end

#outputsObject



77
78
79
# File 'lib/bcs_interrogator/api/ultemp.rb', line 77

def outputs
  bitmasked_data 0..17, 1
end

#setpointsObject



87
88
89
# File 'lib/bcs_interrogator/api/ultemp.rb', line 87

def setpoints
  data_by_ten(11..18)
end

#tempsObject



82
83
84
# File 'lib/bcs_interrogator/api/ultemp.rb', line 82

def temps
  data_by_ten(3..10)
end