Class: FANUC::Ekg::Alarm
- Inherits:
-
Object
- Object
- FANUC::Ekg::Alarm
- Defined in:
- lib/fanuc-ekg.rb
Instance Attribute Summary collapse
-
#angle ⇒ Object
readonly
Returns the value of attribute angle.
-
#disturbance_torque ⇒ Object
readonly
Returns the value of attribute disturbance_torque.
-
#error_text ⇒ Object
readonly
Returns the value of attribute error_text.
-
#occured_at ⇒ Object
readonly
Returns the value of attribute occured_at.
-
#safety_io ⇒ Object
readonly
Returns the value of attribute safety_io.
-
#torque ⇒ Object
readonly
Returns the value of attribute torque.
-
#velocity ⇒ Object
readonly
Returns the value of attribute velocity.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Alarm
constructor
A new instance of Alarm.
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(={}) @occured_at = ["DateTime"] @error_text = ["ErrorText"] @safety_io = ["Safety I/O"] @velocity = { :j1 => ["Vel J1\[%\]"], :j2 => ["Vel J2\[%\]"], :j3 => ["Vel J3\[%\]"], :j4 => ["Vel J4\[%\]"], :j5 => ["Vel J5\[%\]"] } @torque = { :j1 => ["Torq J1\[%\]"], :j2 => ["Torq J2\[%\]"], :j3 => ["Torq J3\[%\]"], :j4 => ["Torq J4\[%\]"], :j5 => ["Torq J5\[%\]"] } @angle = { :j1 => ["Angle J1\[rad\]"], :j2 => ["Angle J2\[rad\]"], :j3 => ["Angle J3\[rad\]"], :j4 => ["Angle J4\[rad\]"], :j5 => ["Angle J5\[rad\]"], } @disturbance_torque = { :j1 => ["DistTorq J1\[%\]"], :j2 => ["DistTorq J2\[%\]"], :j3 => ["DistTorq J3\[%\]"], :j4 => ["DistTorq J4\[%\]"], :j5 => ["DistTorq J5\[%\]"] } end |
Instance Attribute Details
#angle ⇒ Object (readonly)
Returns the value of attribute angle.
88 89 90 |
# File 'lib/fanuc-ekg.rb', line 88 def angle @angle end |
#disturbance_torque ⇒ Object (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_text ⇒ Object (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_at ⇒ Object (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_io ⇒ Object (readonly)
Returns the value of attribute safety_io.
88 89 90 |
# File 'lib/fanuc-ekg.rb', line 88 def safety_io @safety_io end |
#torque ⇒ Object (readonly)
Returns the value of attribute torque.
88 89 90 |
# File 'lib/fanuc-ekg.rb', line 88 def torque @torque end |
#velocity ⇒ Object (readonly)
Returns the value of attribute velocity.
88 89 90 |
# File 'lib/fanuc-ekg.rb', line 88 def velocity @velocity end |