Porovnávané verzie

Kľúč

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

...

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

Kotva
komunikacna_stanica
komunikacna_stanica
Communication station configuration

...

Communication protocol: Paufex DIRAS.
The station address is a decimal number in the range 0 up to 127.
If necessary, the synchronization of the real-time of the station can be enabled.


Station protocol parameters

You can set the following parameters:

Table 1

Key word
KeywordFull nameMeaningUnitDefault value
Kotva
rc
rc
RC
Retry Count
Number of response retries if some error in communication occurs
Maximum count of request retries. If no response returns after a request had been sent, the station's status will change to a communication error.-3
Kotva
mwr
mwr
MWR
Max Wait Retry
Maximum
The maximum number of retries of
reading
the response
until it is completed
reading.-8
Kotva
rt
rt
RT
Retry Timeout
Delay between the response retry if some error in communication occurs
Timeout before resending a request if no response has been received.ms1000
millisec.
ms
Kotva
wt
wt
WT
Wait Timeout
Delay
The delay between
readings
the response
until it is completed
readings.ms
400 millisec.
400 ms
Kotva
wft
wft
WFT
Wait First Timeout
First waiting for response
The delay after sending the request and before reading the response.ms
500 millisec.
500 ms

A string 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

...

I/O tags: Ai, Ao, Ci, Co, Di, Do, TiA, ToA, TiR, ToR.

The address requires three parameters: type, number, and reference.

The values are set in hexadecimal format:

...

Data reading is done in the individual references by the message 02. Message 03 is used to write a new value to the reference.

A real-time may be read/written also with the I/O tag - of TiA (or ToA) type, with address Type=FF, NrNumber=FFFF, RefReference=FF. 

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

Kotva
literatura
literatura
Literature

...