nio1
October 1st, 2009, 11:26 AM
Hello to all!I use cpu-314,analog card SM331 AI 8X13.The range of the input is -50mV/+50mV.I tried many times to scale with the fc105 but appears sf(led of the cpu is on).Any idea scalling without fc105?
Mike_RH
October 1st, 2009, 01:34 PM
What error are you getting in the diagnostic buffer of the cpu?
Did you download FC105?
nio1
October 2nd, 2009, 05:39 AM
You where wright,i havent loaded it:)!Anyway,this is the code that I make..
CALL FC105 IN OUT
IN=PIW256 16#58
HI_LIM=10000.0
LOW_LIMIT=-100OO.0
BIPOLAR=TRUE
RET_VALUE=MW98 16#0
OUT=MD100 16#41fea200
DISPLAY,FORMAT STATUS VALUE
MD100 FLOATING POINT 31.891
The md100 now has the value 31.891mV in hex(16#41fea200) or the real number 31.891?
The project that i work is for a fuzzy application..I use 6 analog inputs,four of them is at -50mV/+50mV.Can i use the value of md100 as input to the fuzzy controler?
.