Temporary Memory M; Data Register D; External Failure Memory F - Mitsubishi Electric melsec-k Programming Manual

Hide thumbs Also See for melsec-k:
Table of Contents

Advertisement

3-2. Temporary memory M
Enter the temporary memory list using "Sheet form 4".
Assignment is not generally executed before the control circuit design, but at the time of deisgn
completion or at the time of programming. Normally, the temporary memory is decided during
the circuit design, so that the design proceeds controlling the number of assignment points, and
after program completion, entry into the list should be executed for arrangement.
Since M is common to the universal shift, assignment of numbers separated from the M numbers
used for the circuit is convenient. In addition, the following two items are used in the same way as
M.
M254 (battery alarm) The alarm signal ("1") is given when the
battery voltage drops below the specified value. The signal is "1"
when
no
battery is used (normal voltage
...
0, down voltage
...
1).
M255 (RUN signal) As this signal becomes "1" when the CPU is
in RUN status, this M is used as output signal path when the signal
is to be taken to the outside (RUN
...
1, STOP
...
0).
For use as an external signal, execute programming for take-out via the output unit in the same
way as for a general M.
Also, as these M differ from general M, do not assign them erroneously as general M.
3-3. Data register D
Normally, a decision is made in the same way as for temporary memories while the program is be-
ing drawn up, but it should be decided in advance to use numbers close to each other for data of'
the same kind, and the details can be determined together with drawing up of the program.
Enter the data register list using "Sheet form
5 ' ' .
1 data item consists of 16 bits.
These data are handled either as binaries (BIN) or as binary coded decimals (BCD).
Accordingly, the max. size for data of 16 bits is as follows:
BCD:
BIN:
As these data consist of 16 bits each, 2 data con not be used jointly within 16 bits.
For example, even when a BCD is a 2 digit number, the upper 2 digits can not be used jointly with
other data. Even the smallest numerical value occupies 16 bits.
Binary coded decimals (decimal number of 4 digits x 4 bits)
Binary number (Binary number of 16 digits. However, the numbers handled here are up
to the decimal number 9999.)
T n d i c a t i n g 1 BCD digit.
3-4. Externa failure memory F
This is abbreviated as failure memory, and the "F" of failure is taken as the symbol. The handl-
ing is in the same as for M, but when an external failure monitor (KN61) is used in the case of F, it
is always possible to execute a search for "F
=
1" and to display the F numbers for which "1"
has been established on the external failure monitor.
Use "Sheet form 6" for the failure memory list. As a large provision is made of 100 points for the
fauilure points F O to F99, the use value will be increased when entry is made such that the failure
contents are classified, and the,index numbers arranged so that the trouble contents can be
recognized directly from the number.
After classification as described above, detailed entry into the list should be executed while pro-
gramming the failure conditions. At the time of program completion, the list should be checked
once again, and the numbers should be assigned in a way convenient for trouble-shooting.
The handling method for the program will be described later.
-18-

Advertisement

Table of Contents
loading

Table of Contents