IW or PIW ?

panthripu

Member
Join Date
Mar 2004
Posts
228
hi
when using some analog input connect at say xxx input ,what sould i use in program ? IWxxx or PIWxxx.similarly after unscaling what to be used to transfer output at output channel ? QWxxx or PQWxxx.
 
Analog inputs are PIW and analog outputs are PQW. PIW stands for peripheral input word and PQW stands for peripheral output word.
 
Peripheral inputs use a separate memory area. To use the values from an analog input you will have to use the PIWxxx address. The IWxxx address uses a separate memory area which is not associated with the peripheral area.

You'll probably want to use a scaling block unless you want the raw data from the analog input. The resulting value from the scaling block will be assigned an address which can be used for your logic.

To use analog outputs, you commonly use an unscale block to get the value back to the raw format used by an analog output cards and address it as PQWxxx.
 
Labotomi was close. The PIW is read any time you request it in your program. Same with PQW. If you were using STL programing and had L PIW XXX T MW 100, The processor would go out and read the input BEFORE the next instruction. At the end of the cyclic scan the processor writes ALL if the QW's to the PQW's and the reads the PIW's and copies them to the IW's. That area is called the Proces Image Table. Your logic is normally done using I 0.0. Q 3.2, etc. The PIWs and PQW's can only be read or wrote as bytes, words and double words. (PIB, PIW, PID) If you call a PIW or PQW that don't exist, your ptocessor will fault, with IW's it wont. IW's can be addressed to a fixed level, determined by your processor. On smaller 300's it's usually 128, some 300s and 400s it can be 512, some 400s 1024, etc. above that you have to use PIW or PQW. If you use that area for I/O, then you would have to load the PIW and tranfer it to a MW to examine an individual bit.
 

Similar Topics

Is there any way to get diagnostics info on device connected over Profinet/Profibus (communication with device fault) from PIW assigned to that...
Replies
6
Views
2,523
Ok guys iv jumped back into the wonderful world of Siemens :shoot: I have a 2 plcs designated as DP masters but connected via a profibus coupler...
Replies
2
Views
1,727
Hello, I have a CPU 315-2dp plc using for profibus communication with the SEW Movidrive MDX61B inverter. In the hardware configuration I have...
Replies
25
Views
8,106
Hi, Im having a practice with a Siemens MM420, using siemens S7 via profibus, im struggling with the status PIW speed ref. I want to convert this...
Replies
9
Views
3,431
Hi, Im having a practice with a Siemens MM420, using siemens S7 via profibus, im struggling with the status PIW speed ref. I want to convert...
Replies
1
Views
1,881
Back
Top Bottom