Class: FANUC::Ekg::Alarm

Inherits:
Object
  • Object
show all
Defined in:
lib/fanuc-ekg.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Alarm

Returns a new instance of Alarm.



89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# File 'lib/fanuc-ekg.rb', line 89

def initialize(options={})
  @occured_at = options["DateTime"]
  @error_text = options["ErrorText"]
  @safety_io = options["Safety I/O"]
  
  @velocity = {
    :j1 => options["Vel J1\[%\]"],
    :j2 => options["Vel J2\[%\]"],
    :j3 => options["Vel J3\[%\]"],
    :j4 => options["Vel J4\[%\]"],
    :j5 => options["Vel J5\[%\]"]
  }
  
  @torque = {
    :j1 => options["Torq J1\[%\]"],
    :j2 => options["Torq J2\[%\]"],
    :j3 => options["Torq J3\[%\]"],
    :j4 => options["Torq J4\[%\]"],
    :j5 => options["Torq J5\[%\]"]
  }
  
  @angle = {
    :j1 => options["Angle J1\[rad\]"],
    :j2 => options["Angle J2\[rad\]"],
    :j3 => options["Angle J3\[rad\]"],
    :j4 => options["Angle J4\[rad\]"],
    :j5 => options["Angle J5\[rad\]"],
  }
  
  @disturbance_torque = {
    :j1 => options["DistTorq J1\[%\]"],
    :j2 => options["DistTorq J2\[%\]"],
    :j3 => options["DistTorq J3\[%\]"],
    :j4 => options["DistTorq J4\[%\]"],
    :j5 => options["DistTorq J5\[%\]"]
  }  
end

Instance Attribute Details

#angleObject (readonly)

Returns the value of attribute angle.



88
89
90
# File 'lib/fanuc-ekg.rb', line 88

def angle
  @angle
end

#disturbance_torqueObject (readonly)

Returns the value of attribute disturbance_torque.



88
89
90
# File 'lib/fanuc-ekg.rb', line 88

def disturbance_torque
  @disturbance_torque
end

#error_textObject (readonly)

Returns the value of attribute error_text.



88
89
90
# File 'lib/fanuc-ekg.rb', line 88

def error_text
  @error_text
end

#occured_atObject (readonly)

Returns the value of attribute occured_at.



88
89
90
# File 'lib/fanuc-ekg.rb', line 88

def occured_at
  @occured_at
end

#safety_ioObject (readonly)

Returns the value of attribute safety_io.



88
89
90
# File 'lib/fanuc-ekg.rb', line 88

def safety_io
  @safety_io
end

#torqueObject (readonly)

Returns the value of attribute torque.



88
89
90
# File 'lib/fanuc-ekg.rb', line 88

def torque
  @torque
end

#velocityObject (readonly)

Returns the value of attribute velocity.



88
89
90
# File 'lib/fanuc-ekg.rb', line 88

def velocity
  @velocity
end