![Kuhnke FIO (V2) Manual Download Page 74](http://html.mh-extra.com/html/kuhnke/fio-v2/fio-v2_manual_2009572074.webp)
Kendrion Kuhnke Automation GmbH
Mix 02
74
11/25/2016
The Sync0 is triggered every 1ms.
The analog values are therefore measured every millisecond and copied to the process image in Sample 0.
Sample1-4 remains empty.
The SampleCycleCounter is incremented after 2ms.
4.15.3.9 Rs485
The Baud rate of the RS485 is set via Object 0x2001.
Data are sent and received via object 0x2002.
If the object is written [number of data] from the data bytes 0..7 are sent.
If the object is read a maximum of 8 data bytes will be removed from the
receive queue.
Is [number of data] = 0, so nothing was received.
The SDO transfer to and from the object is always 10 bytes long.
Bit0 in the
StateWord
indicates that data are in the receiving queue. The
receive buffer contains a maximum of 1024 bytes. An overflow is indicated by Bit1 in the
StateWord
.
4.15.3.10 Counter
Parallel to the use as digital inputs, the inputs DI5..7 are evaluated for an event counter.
The counter value
Inputs, Counter
is a 32 bit value.
•
The clock signal to count is connected to DI5.
•
The counting direction is determined by the state of DI6.
If DI6 = FALSE each rising edge at DI5 leads for incrementing of Inputs, Counter.
If DI6 = TRUE, each rising edge at DI5 executes the decrementing of input data, position counter.
•
Rising edge at DI7 sets
Inputs, Counter
to the value 0.
The counter value can be reset by software (rising edge at
Outputs, ControlWord, Bit 1
).
4.15.3.11 Analog Inputs / Oversampling
The analog conversions occur cyclically every 1ms and asynchronously to the arrival of EtherCAT
telegrams. The module offers oversampling.
Depending on the setting of the oversampling parameter, the measured values are copied in the process
image. The default is 5:
In this setting, the analog values are renewed in the process image as a consistent set (indicated by the
incremented counter in the
StateWord
) only after 5ms. The interval of 1ms measured values are then in the
variables
AnalogInx_Sample0..4
. (x = 0..3)
If the oversampling parameter is smaller, the process image is updated accordingly faster and the unused
sample values remain empty.
If the oversampling parameter is 1, a new process image is generated after 1 millisecond.
The values are then only on Sample0. Sample 1..4 are unused..
Wert
Baud rate
0
2400
1
4800
2 (default)
9600
3
19200
4
38400
5
57600
6
115200
7
230400
8
460800
9
921600
Byte
Explanation
0
Number of data
1
-
2
Data byte 0
…
…
9
Data byte 7