Asycube - Asyril SA
Programming Guide
©
Copyright Asyril S.A.
000.101.572
Version : A1
79/83
6.5.2. Handle the Status and Control Holding Registers
Program your Modbus master to monitor the Asycube errors state by reading the
HR_MODBUS_STATUS register. Analyze the HR_MODBUS_ERROR_CODE,
HR_WARNINGS and HR_ALARMS registers if needed.
Program your Modbus master to be able to clear the errors by writing the
HR_MODBUS_CONTROL register.
6.5.3. Vibration, sequence, backlight, read/write parameter
Start a platform vibration
o
Set the vibration identifier in HR_PLATFORM_VIBRATION_ID, for example
3 for ‘D’, which corresponds to a ‘Left’ direction (according to the convention
presented in Section 2.1).
o
Set the vibration duration in HR_PLATFORM_VIBRATION_DURATION, for
example 1500 to prepare a vibration of 1.5 s.
o
Start the vibration by changing the value of the trigger
HR_PLATFORM_VIBRATION_TRIG from 0 to 1.
Monitor a platform vibration
o
Read the HR_MODBUS_PLATFORM_STATUS. If the value is ERROR,
refer to the HR_MODBUS_STATUS for more information. A BUSY value
means that the command has been understood and that the vibration has
started.
o
Monitor the HR_MODBUS_PLATFORM_STATUS and wait for its value to
get back to DONE, which means that the vibration is completed.
o
Or monitor the HR_PLATFORM_REMAINING_TIME to see the remaining
vibration time. The value decreases to 0 when the vibration is completed.
Start and monitor a sequence
o
Prepare the vibration parameters in
HR_SEQUENCE_EXECUTION_NBPARTS,
HR_SEQUENCE_EXECUTION_NBMAX,
HR_SEQUENCE_EXECUTION_X, HR_SEQUENCE_EXECUTION_Y and
HR_SEQUENCE_EXECUTION_SEQUENCEID.
o
Start the sequence by changing the value of the trigger
HR_SEQUENCE_EXECUTION_TRIG from 0 to 1.
o
Monitor HR_MODBUS_SEQUENCE_STATUS and
HR_SEQUENCE_REMAINING_TIME and act accordingly.
Stop a sequence currently running
o
Stop the sequence by changing the value of the trigger
HR_SEQUENCE_HALT from 0 to 1.
Switch the backlight ON