Using memories

Try to rephrase your question differently. I am not certain I understand what you are asking.

If you are asking why a programmer might use internal bits to control the physical output bits there are a few reasons.

1) Helps with splitting up various modes (Auto/Manual) etc.
2) Allows logic and programs to be written prior to finalizing the IO.
3) Creates a single point of for which to locate the origin logic for that output.
4) Allows more control over when physical IO is actually written to. Can be help with controllers that support an asynchronous scan.
 
I will answer this from another perspective.

The communication channel from the CPU which is interpreting the program to the actual physical I/O is often many times slower than the access to a memory map which will represent the outputs.

Thus, during the program scan the intended outputs are written to the memory mapped section. At the end of the program scan the memory mapped area is sent to the actual physical outputs in one move, saving a lot of time.

Some instructions (if they exist in your system) like 'interrupt I/O read/writes' can override this sequence but at the expense of using precious program scan time.

So, from my point of view, the use of intermediate memory mapped locations which are then, at the end of the scan, applied to real outputs is to save time. The use of memory mapped inputs is another issue in itself.
 

Similar Topics

I am almost finished with this project but now Im kind of having a hard time trying to figure out how to find the maximum and minimum values from...
Replies
4
Views
1,585
Hello, I'm working on a project where I have two encoders (which I'm reading through counters). What happens at the line is that an inspector is...
Replies
7
Views
2,808
I have a project to automate four generator sets. The system will monitor and store the load demand of the factory. Once there's Power outage, the...
Replies
0
Views
64
Adding ethernet equipment to an existing panel that has none. We have some solid ethernet cables coming from other remote cabinets that I plan to...
Replies
3
Views
124
I'm trying to control a device via MODBUS RTU and the ModbusRtuMasterV2_PcCOM in Twincat 3. I've configured a device with the right com port and...
Replies
7
Views
222
Back
Top Bottom