Hi , every one
I don't understand , how is it the bit number configurations for analog chanel
ANOUT1=50,2,12,0 ;$OUT[217-232]
ANOUT2=50,4,12,0 ;$OUT[233-248]
can you tell me ?
Hi , every one
I don't understand , how is it the bit number configurations for analog chanel
ANOUT1=50,2,12,0 ;$OUT[217-232]
ANOUT2=50,4,12,0 ;$OUT[233-248]
can you tell me ?
Controller Model? KSS version? Fieldbus type? Did you read the comments section of IOSYS.INI that explains this?
;Analog Inputs and Outputs:
;
; Form 1:
; {token}{num}={byte},{res},{type}[,CAL{factor}]
;
; {token} ANIN or ANOUT
; {num} number of the analog channel (1..i)
; {byte} byte offset over all peripheral devices (0..m)
; Offset starts with 0 at the first device and
; ends with m at the end of the last device.
; {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:
; ANIN1=10,12,3
; The analog input No.1 is used. The byte offset on
; peripheral side is 10, the resolution is 12 bit and the
; type of analog value is 3 (left justified with sign).
; The maximum binary analog value is 2047.
;
; 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.
Thanks a lot sky , you was tell so good .
everything is very good but i dont understand ' type of analog value' correctly..
can you help me about this? what change is this in main type?
thank you
Justification: a 12-bit analog device takes up 16 bits in the I/O space. Some brands put the unused bits on the low (right) side of the word, others on the high (left) side.
Signed: binary numbers can be signed or unsigned. For signed, the highest bit (MSB) is the sign (+ if 0, - if 1), and the remaining bits are the magnitude. So a 16-bit unsigned binary number can range from 0 to +65535, while a 16-bit signed number can range from -32767 to +32767.