~ 34 ~
UBZ-304
NOVATEK-ELECTRO
Hours
82
Day
83
Month
84
Year
85
Last two digits of the current century are recorded (read)
in the register
5.4.8 Communication errors handling
In case of erroneous situation when making the frame (parity error, frame error, checksum error) UBZ returns no
reply.
In the event of an error in the format or value of data transferred (unsupported function code, etc.) UBZ accepts
the request frame and builds a response with a symptom and error code. The error indicator is the high bit set to
one in the function field. For the error code there is separate field in the response. Response example is given in
Fig. 5.15. Error codes are listed in Table 5.11.
Request
–
Function 30h is not maintained
Address
Function
Data
CRC LB
CRC HB
01h
30h
XXh
XXh
Response
Address
Function
Error code
CRC LB
CRC HB
01h
B0h
01h
94h
00h
Figure 5.15
–
Example of the response after error occurs
Table 5.11
–
Error codes
ERROR
CODE
NAME
Description
01h
ILLEGAL FUNCTION
Received the function code cannot be processed by UBZ
02h
ILLEGAL DATA
ADDRESS
The data address specified in the request is not available to this
slave
03h
ILLEGAL DATA VALUE
The value contained in the request data field is disabled value for
UBZ
04h
SLAVE DEVICE
FAILURE
While UBZ attempted to perform the requested action,
unrecoverable error occurred
05h
ACKNOWLEDGE
UBZ accepted the request and is processing it, but this takes
much time. This response prevents master from generating
timeout errors
06h
SLAVE DEVICE BUSY
UBZ is busy of processing a command. The master should repeat
the message later when the slave is freed
07h
NEGATIVE
ACKNOWLEDGE
UBZ cannot perform the program function received in request
5.4.9 Remote control of the motor using RS-232/RS-485 interface
UBZ operation in remote control mode is determined by parameter
“MotorOp RS
-
2/5“
:
When
“MotorOp RS
-
2/5”
equal to
“Off” (0) –
remote control of the motor is disabled.
With activated remote control (parameter
“
MotorOp RS-
2/5”=“
OnSta
”(1)
or
“OffSt” (2))
, motor start on the front
panel is disabled regardless of the value of the parameters "MotorOpUBZ" and "Start>power".
When
“MotorOp RS
-
2/5”
=
“OnSta” –
after energizing UBZ operates in the same way as when the remote control
is disabled (normal device operation), but it is enabled to record to the command register R_COMMAND. Automatic
motor start is possible only after ARS time.
When
“MotorOp RS
-
2/5”
= "
OffSta” –
UBZ will start the motor only after the receipt of the respective command
via RS-232/RS-485 interface.
The value R_COMMAND is taken into account by UBZ operation algorithm when
“MotorOp RS
-
2/5” =“OnSta”
and
“MotorOp RS
-
2/5” =
“
OffSt
”.
If
“MotorOp RS
-
2/5” =
“Off”
and the user sets
“MotorOp RS
-
2/5” “OnSta”
or
“MotorOp RS
-
2/5” =
“
OffSt
”,
then in R_COMMAND zero (0) will be recorded.
The list of possible register setup of commands is shown in Table 5.12.
When
“MotorOp RS
-
2/5” =
“OnSta”,
then after energizing in the command register 1 is recorded (normal device
operation).
When
“MotorOp RS
-
2/5” =
“
OffSt
”,
then after energizing in the command register 0 is recorded (motor is disabled
prior to entering the command to enable).
In case of emergency shutdown of the motor by simultaneously pressing
DOWN
,
UP
(when "MotorOp UBZ" = 2
("Stop") or "MotorOp UBZ" = 3 ("St<>"), 0 will be reset in the command register.
Table 5.12
–
Values of command register