Appendix E. Omron NT-series NT600S-ST211(B)-EV3, NT-series NT600S-ST121(B)-EV3, NT-series NT20S-ST161-EV3, NT-series NT20S-ST121-EV3, NT-series NT20S, NT-series NT20M-DT131, NT-series NT20S-ST168, NT-series NT20S-ST128, NT-series NT20S-ST122-V1
تبلیغات
تبلیغات
NT20S Internal Processing Appendix E
APPENDIX E
NT20S Internal Processing
When the direct connection function is used, the following processing is executed inside the NT20S. Processing is divided into two types: periodic processing and event processing.
Periodic Processing (When Using Direct Connection)
The following processing is executed inside the NT20S to enable high-speed control from the PC.
Usually, the only data read from the PC area the elements used for the currently displayed screen. Even if the contents of the PC words allocated to memory tables are changed, these contents are not updated at the PT unless the memory table is used for the displayed screen.
[NT20S (PT) processing] [Details of processing]
PT power ON
Initial processing
Operation start
Initial values written to the memory tables
Screen switching
Screen element registration
(PT → PC)
(PT → PC)
Hardware check, communication status check, etc., executed.
When the values registered in the NT20S are used as the initial values in the memory tables, these values are written into the allocated words of the PC.
In order to enable fast batch processing, the elements used in the displayed screen are registered in the PC in advance.
Approximately 120 words can be registered per screen.
The statuses of the registered elements are read from the PC and the display is changed.
The status of the elements that were in excess of the registrable number and could not be registered is read from the PC, and the display is changed. This processing is continued until the statuses of all the remaining elements has been read.
Reading of registered elements
(PT ← PC)
Reading of elements that could not be registered.
(PT ← PC)
Reading of the elements that could not be registered.
(PT ← PC)
Reading the PT status control area
(PT ← PC)
Reading of elements that could not be registered
Reading of elements that could not be registered
Reading of the PT status control area
(PT ← PC)
(PT ← PC)
(PT ← PC)
If the number of elements that could not be registered is large, the PT status control area is read after every two element readings.
: Processing performed if necessary
252
NT20S Internal Processing Appendix E
S
Number of words for screen element registration
The number of words used for screen element registration is as follows.
Allocated words: Number of words
Allocated bits : Number of words calculated by summing the number of bits in each area and taking 1 word to be 16 bits.
[Example]
Character string memory tables : 3 of 12 allocated words each
Numeral memory tables
Allocated bits for control
: 4 of 2 allocated words each
: 19 I/O relays, 7 link relays (contiguous bits)
The number of words assigned to character string memory tables and numeral memory tables is as follows:
12 words X 3 + 2 words X 4 = 44 words
The assignment for bits is as follows:
19 I/O relays ÷ 16 = 1 word with a remainder of 3 bits → 2 words
7 link relays ÷ 16 = 0 words with a remainder of 7 bits → 1 word
The total is therefore 44 words + 2 words + 1 word = 47 words
Elements occupying up to approximately 120 words, calculated in this way, can be registered. If the number of elements is larger than this, internal processing is increased in proportion to the excess number and this generates a delay in processing.
If the point where the registrable quantity is exceeded is in the middle of an element that spans several words (for example a character string memory table), registration is quit without registering that element.
S Order of priority for registration
Elements are registered in the following order of priority according to their type.
(1) Allocated words of the PT status control area
(2) Allocated bits for control (lamps, touch switches)
(3) Allocated words of numeral memory tables
(4) Allocated words of character string memory tables
If there is more than one element for each of (2) through (4), the elements are registered in accordance with the following priority of word and bit areas:
(1) Data memory (DM)
(2) I/O relays (CH)
(3) Timers (TIM)
(4) Counters (CNT)
(5) Holding relays (HR)
(6) Auxiliary relays (AR)
Within each area, words and bits are allocated from the smallest number up.
253
NT20S Internal Processing Appendix E
Event Processing (When Using Direct Connection)
When the status of the NT20S changes during operation, the processing for writing the changed data to the relevant area of the PC memory is executed.
This kind of processing is only executed when statuses change. When changes occur simultaneously, the processings are executed in accordance with the order of priority.
[NT20S processing]
High
Writing to PT status notify area
Bit writing
(PT → PC)
(PT → PC)
Writing to numeral memory tables (PT → PC)
Low
Writing to character string memory tables (PT → PC)
[Details of processing]
Writing to the PT status notify area in order to inform the PC of changes in the PT operation status.
Updating the contents of words allocated to the PC when the value in a numeral memory table has changed.
Updating the contents of words allocated to the PC when the contents of a character string memory table have changed.
Writing to bits in order to inform the PC of touch switch statuses.
Data is only written to PC bits and numeral/character string memory tables for elements in screens currently being displayed. If the contents of numeral/character string memory tables that are not being displayed change, the changed data is not written to the PC.
254
دانلود
تبلیغات