Hallo Allerseits!
Scheine ein extremes Brett vorm Kopf zu haben, bekomme einfach nicht raus, wie es richtig ist. Eine Beckhoff KL3064 Busklemme bietet 8 Analoge Eingänge. Die MAC ID und das {byte} stimmen, aber am Rest haperts. Das Teil bietet 12 bit Auflösung für 0-10V, daher die Wahl der restlichen Werte. Die Anzeige der Analogen Eingänge im Kontrollpanel zeigt jetzt allerdings Werte von 0 - 2047 an, das wären 11bit, nicht umgerechnet in Volt.
Hier der Auszug aus der iosys.ini:
ANIN1=5,0,12,2,CAL 10 ; beckhoff MAC ID = 5
; Form 2:
; {token}{num}={address},{byte},{res},{type}[,CAL{factor}]
;
; {token} ANIN or ANOUT
; {num} number of the analog channel (1..i)
; {address} address of a peripheral device (0..m)
; driver specific information, see descr. below
; {byte} byte offset at this peripheral device (0..m)
; Offset starts with 0 at the every device
; driver specific information, see descr. below
; {res} resolution of the analog value (number of bits)
; {type} type of analog value
; 0 : right justified without sign
; 1 : right justified with sign
; 2 : left justified without sign
; 3 : left justified with sign
; {factor} maximum analog value, decimal without prefix,
; hexadec. with prefix 0x or octal with prefix 0
; "CAL 0" or no entry sets factor to its maximum
; Example:
; ANIN3=30,0,16,2,CAL 0x6C00
; The analog input No.3 is used. The device address is 30,
; the byte offset at this device is 0, the resolution is
; 16 bit and the type of analog value is 2 (left justified
; without sign). The maximum binary analog value is 27648.
; The CAL-factor is especially required in case of using
; Profibus analog modules.
Hoffentlich weiss irgendwer irgendwas, sonst artet das in Rumprobieren aus...
Danke schon mal,
Kai