12/22/2012 5:13 PM | |
Joined: 9/2/2012 Last visit: 8/15/2024 Posts: 711 Rating: (30) |
Thanks Dchartier .. regards Vipz
|
|
|
12/24/2012 10:47 AM | |
Joined: 9/8/2009 Last visit: 7/17/2023 Posts: 1410 Rating: (152) |
Very long time ago, when I begun to program I came to conclusion (it might not be the right) that for analog, counters,.. I have to R/W trough peripheral adress (PIW,PID,..) it won't work if you try with IW, ID, so I never tried again to use process image to access those signals. When you access trough peripheral address space, then the CPU asks a remote module what is the last good value, so it takes a quite more time compared to process image that resides in CPU memory. However ADC conversion time is much greater and new access to analog input module doesn't mean a new conversion command, conversions repeat continuously and you get only thelast measurment. PLC program would take very long timeif at anyIO access shouldwait for a conversion to complete making all useless, so it doesn't go that way. DAC is the same, altrough DAC performs very faster than ADC (conversion is quite immediately) still your plc program executes forward and it doesn't wait that output of DAC settles and then continues. Conclusion: when you need to read or write an analog value from/to analog card use peripheral addressing, but only once in your plc program, for all subsequent conversions, comparations and computations use memory area in plc, don't load the same ana. input twice or more via PIW. Also store the output value via PQW only once. You can use SCALE/UNSCALE functions,... You can also check execution times of different allocation load/transfer commans. Attachments7300_parameter_manual_en-US_en-US.pdf (147 Downloads) |
12/24/2012 5:13 PM | |
Joined: 9/2/2012 Last visit: 8/15/2024 Posts: 711 Rating: (30) |
Thank you Marko for sharing the knowlege. . . regards Vipz
|
|
|
Follow us on