Promotic

Communication result

The AtouchX library defines symbolic constants describing the result of the communication.
 
Current communication status
Constant Value Description
atfMaskState &HF00 The value masking bits D11÷D8 with instantaneous communication state.
atfOk &H200 Communication result OK.
atfError &H400 Communication ended with an error.
atfTimeout &H800 Communication ended with a "Timeout" error - the station did not respond.
&H100 Internal state - "request is being processed" - which cannot be accessed within the AtouchX library objects, because the result of the communication is always returned after the communication has been completed.
 
Communication result
Constant Value Description
atrMaskResult &HFFFF0000 The value masking bits D31÷D16 with the communication result.
atrOk &H0 Communication was OK. Only if atfOk.
atrTransmit &H10000 Error in data transmission on the link (frame error, CRC error, etc.). Probably interference on the link.
atrParam &H20000 Data parameters error (wrong variable, dimensions, type, etc.). Probably inconsistency of database variable on PC and in station.
atrFunction &H30000 Malfunction. The station does not support the transmission of this type of data.
atrUnknown &H40000 Unspecified error.
atrTimeout &H50000 Timeout, the station did not respond. Only if is atfTimeout.
atrDokopo &H60000 Error during data transfer between DOKOPO and PC.
atrMixResponse &H70000 Mixed (unexpected) response from the station.
atrLock &H80000 The reading of the database variable was not physically performed, because the writing of the same database variable is in progress at the same time. Only if the atfOk. Not an error, it has the character information of a read/write conflict that has been resolved in favor of writing.
atrLength &H90000 Transmission error (wrong data length).
atrReset &HA0000 Communication was not physically performed because the HW connection was reset (reinitialized) due to detection of its faulty function.
atrConnect &HB0000 Communication has not been physically implemented because there is no available HW (modem) for connection. It is necessary to release the HW (modem) first.
atrDisconnect &HC0000 Communication was not physically carried out because the command to disconnect the station was issued.
atrLinkDown &HD0000 Communication was not physically carried out because the connection with the station broke down.
atrConnectBusy &HE0000 Communication was not physically carried out because there is no available HW (modem) to connect - all modems are busy. It is necessary to wait and retry.
atrInsert &H100000 The communication request was rejected because the transfer buffer is full. It is not directly the result of the communication. The value is used in cases when it is necessary to use the result of the communication to also report a communication not started error. The error is used by the AtouchArch object in the "GetExtendedStatus(V)" method.
atrVariant &H110000 Communication was OK, but it is not possible to create a VBA variable for the read data.
atrFatalInsert &H120000 The communication request was rejected on insertion. It is not directly a result of the communication. The value is used in cases where it is necessary to report a failure to initiate communication using the communication result. The error is used by the AtouchArch object in the "GetExtendedStatus(V)" method.
PROMOTIC 9.0.21 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
© MICROSYS, spol. s r. o.