i want to know to know the weight of hanging load on crane motor ,, load cell is conected with plc , its showing reading on line, i only know the programing about digital sensors & push buttons which have 0 or 1 position
Connect your load cell to analog input and note down its address(say PIW100).
Note the the specification of the load cell.
That is at how much weight it will give 20mA.(Say 20 tons)
Then use the scaling block (FC 105) as shown
This block is in(Libraries-->Standard Libraries-->TI-S7 Converting Blocks)
CALL FC 105
IN :=PIW100 //address of AI
HI_LIM :=2.000000e+001 //assuming load cell give 20mA at 20Tons
LO_LIM :=0.000000e+000
BIPOLAR:=FALSE
RET_VAL:=MW0
OUT :=MD2 //Here the reading of the load cell will come
If load cell has local display then it should almost match with PLC value at MD2