Data writing is possible only to the programmable parameter’s addresses (Table 1.5), except for the following parameters:
Parameter
Code
Address
Equipment operation time counter, days
tbU
191
User access code
LOC
192
Service engineer access code
PA5
193
System reset to factory settings
PPP
194
Device version
rEL
200
Parameter writing is performed independently from the installed Service Engineer protection (the entry made via communication line has a higher priority).
When a new parameter value is written into a MMSP-protected cell, such parameter will automatically be excluded from this mode.
The checksum (CRC16) is a cyclic redundancy check code based on 0xA001 polynomial. The transmitting device forms the checksum for all bytes of the message transmitted. The receiving device similarly forms the checksum for all bytes of the message received, and compares it to the checksum received from the transmission device. When received and transmitted checksums do not match, an error message is generated.
The checksum field size occupies two bytes. The checksum within message is transferred with low byte coming first.
The checksum is registered under the following algorithm:
Load CRC register (16 bit) with units (0xFFFF)
Exclusive OR with first 8 bytes of message and CRC register contents
Offset the result one bit to the right
If the offset bit = 1, the exclusive OR of the register contents with 0xA001 value
If the offset bit = 0, repeat step 3
Repeat steps 3, 4, 5 until 8 offsets have been completed
Exclusive OR with the next 8 bits of the message byte and CRC register contents
Repeat steps 3–7 until all bytes of the message have been processed
The finite register contents will contain the checksum
When an error situation occurs at time of a frame receipt (parity error, frame error, checksum error), the OM-310 device does not return a response.
When an error occurs in the format or in the value of the data transferred (unsupported function code, etc.), OM-310 receives the request frame and forms a response with the error indicator and code. A high-order function field bit inserted in the unit serves as error indicator.
Example: function 0x30 error response (illegal function) from OM-310 with communication address 0x01.
Command message
Response message
ADDRESS ID
0x01
ADR
0x01
FUNCTION
0x30
FUNCTION ERROR
0xB0
DATA
…
Error code
0x01
CRC CHK low
…
CRC CHK low
0x94
CRC CHK high
…
CRC CHK high
0x00
Table 2.6 – Error codes
Error code
Title
Description
0x01
ILLEGAL FUNCTION
Function code received cannot be processed by OM-310
0x02
ILLEGAL DATA ADDRESS
Data address in the query is not accessible by the given subordinate
0x03
ILLEGAL DATA VALUE
Value contained in the request data field is not a valid value for OM-310
0x04
SLAVE DEVICE FAILURE
While OM-310 attempted to perform the requested action, an unrecoverable error occurred
0x05
ACKNOWLEDGE
OM-310 accepted request and is processing it, but it requires a long time
0x06
SLAVE DEVICE BUSY
OM-310 is busy with command processing. Master must repeat message later
0x07
NEGATIVE ACKNOWLEDGE
OM-310 cannot perform the program function received in the request
De-energize load. If load is de-energized, before a power-on command from Remote Control has been received, the load will not energize. If load is energized, it will be de-energized.
1
Normal device operation. If load was de-energized by remote control command, by pressing DOWN+UP buttons (while ACd=3), or in case of a failure after which automatic restart is permitted, then load will be energized within specified automatic restart time.
2
Early load energizing. Value “2” record will lead to load power-on until expiration of the automatic reset time period. After load power-on, R_COMMAND=1.
The R_COMMAND value is regarded by the OM-310 operation algorithm when dUd=1 or dUd=2. If dUd=0 and the user sets dUd=1 or dUd=2, then 0 will be recorded to R_COMMAND.
If dUd=1, then after energizing “1” value (device normal operation) will be recorded in the command register.
If dUd=2, then after energizing “0” value (load de-energized until the command to energize is received) will be recorded in the command register.
In case of an emergency load shutdown by simultaneous pressing DOWN+UP buttons (while ACd=2 or ACd=3), the command register will be reset to 0.