Porovnávané verzie

Kľúč

  • Tento riadok sa pridal
  • Riadok je odstránený.
  • Formátovanie sa zmenilo.

...

  • Communication line category: Serial.
  • The parameters of the asynchronous line are set according to version and type of device connection.

...

  • Communication protocol: Paufex DIRAS B
  • The station address is a decimal number in the range of 0 up to 127, it can be also specified as a hexadecimal number with a hash at the beginning, e.g. #0A.
  • If necessary, you may enable the synchronization of the real-time of the station.


Station protocol parameters

You can set the following station parameters:

Table 1

Key wordKeywordFull nameMeaningUnitDefault value
Kotva
rc
rc
RC
Retry CountNumber Maximum count of response retries if some error in communication occursrequest retries. If no reply returns after a request had been sent, the station's status will change to a communication error.-3
Kotva
mwr
mwr
MWR
Max Wait RetryMaximum The maximum number of retries of reading the response until it is completedthe reply reading.-8
Kotva
rt
rt
RT
Retry TimeoutDelay between the response retry if some error in communication occursTimeout before resending a request if no reply has been received.ms1000 millisec.ms
Kotva
wt
wt
WT
Wait TimeoutDelay The delay between readings the response until it is completedthe reply readings.ms400 millisec.ms
Kotva
wft
wft
WFT
Wait First TimeoutFirst waiting for response The delay after sending the request and before reading the response.ms500 millisec.ms

String A string containing the protocol parameters is being defined as follows:

Key_word=value;Key_word=value; ...

Example:

RC=1;RT=500;

If there is used a keyword with an invalid value is in the initialization string, there will be used the corresponding default value according the to table 1 will be used.

Kotva
merany_bod
merany_bod
I/O tag configuration

...

For output tags (Ao, Co, Do, ToA, ToR) you should also set the address parameters: type, number, and reference.

The values are in hexadecimal format:

...

Data reading is done in the blocks by Message 00. The tags with the same address are read in one block. The length of this block can by be at most 128 bytes and this shows that the highest permitted offset is 7F for 1-byte data (Ci, Co, Di, Do) and 7C for 4-byte data (Ai, Ao, TiA, ToA, TiR, ToR).

To enter a new value into reference, use Message 03 and the address parameters - type, number, and reference.

I/O tag of TiA type (or ToA) is other way on how to read/write another way of reading/writing the real-time. The address must be Address=FFFF, Offset=FFFF (Type, number, reference for ToA can be optionalarbitrary).

Message 0B ensures the real time reading of real-time and Message OC the writing of real-time writing.

Kotva
literatura
literatura
Literature

...