Dr (Data Read) - Mitsubishi Electric MELFA Instruction Manual

Cr1 controller
Hide thumbs Also See for MELFA:
Table of Contents

Advertisement

DR (Data Read)

DR (Data Read)
DR (Data Read)
DR (Data Read)
【 Function 】
【 Function 】
【 Function 】
【 Function 】
Reads the values of the internal register, hand check state, and general output state. (Using RS-232C )
Reads the values of the internal register, hand check state, and general output state. (Using RS-232C )
Reads the values of the internal register, hand check state, and general output state. (Using RS-232C )
Reads the values of the internal register, hand check state, and general output state. (Using RS-232C )
【 Input Format 】
【 Input Format 】
【 Input Format 】
【 Input Format 】
DR   [<output bit number>]
DR   [<output bit number>]
DR   [<output bit number>]
DR   [<output bit number>]
【 Term 】
【 Term 】
【 Term 】
【 Term 】
<Output bit number>
<Output bit number>
<Output bit number>
<Output bit number>
【 Explanation 】
【 Explanation 】
【 Explanation 】
【 Explanation 】
(1) Outputs the values of the internal register, hand check state, and general output state through the RS-232C.
(1) Outputs the values of the internal register, hand check state, and general output state through the RS-232C.
(1) Outputs the values of the internal register, hand check state, and general output state through the RS-232C.
(1) Outputs the values of the internal register, hand check state, and general output state through the RS-232C.
Allows the external input data and hand open/close state to be read when executed after the input command (ID).
Allows the external input data and hand open/close state to be read when executed after the input command (ID).
Allows the external input data and hand open/close state to be read when executed after the input command (ID).
Allows the external input data and hand open/close state to be read when executed after the input command (ID).
(2) Hand check state read by the DR command corresponds to the current state.
(2) Hand check state read by the DR command corresponds to the current state.
(2) Hand check state read by the DR command corresponds to the current state.
(2) Hand check state read by the DR command corresponds to the current state.
(3) When you specify the output bit number, you can read the general output state of 16 bits-width beginning from
(3) When you specify the output bit number, you can read the general output state of 16 bits-width beginning from
(3) When you specify the output bit number, you can read the general output state of 16 bits-width beginning from
(3) When you specify the output bit number, you can read the general output state of 16 bits-width beginning from
the specified bit number.
the specified bit number.
the specified bit number.
the specified bit number.
(4) The output format is in ASCII coded hexadecimal, which is headed by "&H" and delimited by "," (Hex. 2C).
(4) The output format is in ASCII coded hexadecimal, which is headed by "&H" and delimited by "," (Hex. 2C).
(4) The output format is in ASCII coded hexadecimal, which is headed by "&H" and delimited by "," (Hex. 2C).
(4) The output format is in ASCII coded hexadecimal, which is headed by "&H" and delimited by "," (Hex. 2C).
The output format: Value of hand check state and the internal register, general output
The output format: Value of hand check state and the internal register, general output
The output format: Value of hand check state and the internal register, general output
The output format: Value of hand check state and the internal register, general output
The first column next to "& H" responds to the hand check input and the following 4 columns responds to the
The first column next to "& H" responds to the hand check input and the following 4 columns responds to the
The first column next to "& H" responds to the hand check input and the following 4 columns responds to the
The first column next to "& H" responds to the hand check input and the following 4 columns responds to the
value of internal register, and the remaining 4 columns headed by "&H" responds to the current general output.
value of internal register, and the remaining 4 columns headed by "&H" responds to the current general output.
value of internal register, and the remaining 4 columns headed by "&H" responds to the current general output.
value of internal register, and the remaining 4 columns headed by "&H" responds to the current general output.
(5) Because the terminator of the output data is carriage return (Hex.0D), it is necessary to handle serial data strings
(5) Because the terminator of the output data is carriage return (Hex.0D), it is necessary to handle serial data strings
(5) Because the terminator of the output data is carriage return (Hex.0D), it is necessary to handle serial data strings
(5) Because the terminator of the output data is carriage return (Hex.0D), it is necessary to handle serial data strings
up to hexadecimal 0D in receiving a message by a personal computer. "LINE INPUT #" statement is equivalent to
up to hexadecimal 0D in receiving a message by a personal computer. "LINE INPUT #" statement is equivalent to
up to hexadecimal 0D in receiving a message by a personal computer. "LINE INPUT #" statement is equivalent to
up to hexadecimal 0D in receiving a message by a personal computer. "LINE INPUT #" statement is equivalent to
this in BASIC.
this in BASIC.
this in BASIC.
this in BASIC.
【 Sample program 】 (N88BASIC)
【 Sample program 】 (N88BASIC)
【 Sample program 】 (N88BASIC)
【 Sample program 】 (N88BASIC)
10 OPEN "COM1;E83"AS#1
10 OPEN "COM1;E83"AS#1 ; Opens the RS-232C communication file by the personal computer.
10 OPEN "COM1;E83"AS#1
10 OPEN "COM1;E83"AS#1
20 PRINT #1,"ID"
20 PRINT #1,"ID"
20 PRINT #1,"ID"
20 PRINT #1,"ID"
30 PRINT #1,"DR"
30 PRINT #1,"DR"
30 PRINT #1,"DR"
30 PRINT #1,"DR"
40 LINE INPUT #1,A$
40 LINE INPUT #1,A$
40 LINE INPUT #1,A$
40 LINE INPUT #1,A$
50 PRINT "Data is";A$
50 PRINT "Data is";A$
50 PRINT "Data is";A$
50 PRINT "Data is";A$
60 ED
60 ED
60 ED
60 ED
RUN
RUN
RUN
RUN
Data is &H10FB2, &H30BA ; Displays data.
Data is &H10FB2, &H30BA
Data is &H10FB2, &H30BA
Data is &H10FB2, &H30BA
0 ≦ output bit number ≦ 32767 (0 for default)
0 ≦ output bit number ≦ 32767 (0 for default)
0 ≦ output bit number ≦ 32767 (0 for default)
0 ≦ output bit number ≦ 32767 (0 for default)
; Opens the RS-232C communication file by the personal computer.
; Opens the RS-232C communication file by the personal computer.
; Opens the RS-232C communication file by the personal computer.
; Sets the value of input port to the internal register.
; Sets the value of input port to the internal register.
; Sets the value of input port to the internal register.
; Sets the value of input port to the internal register.
; Reads the value of internal register and hand check input.
; Reads the value of internal register and hand check input.
; Reads the value of internal register and hand check input.
; Reads the value of internal register and hand check input.
; Saves the data to A$.
; Saves the data to A$.
; Saves the data to A$.
; Saves the data to A$.
; Displays the value of A$.
; Displays the value of A$.
; Displays the value of A$.
; Displays the value of A$.
; Ends
; Ends
; Ends
; Ends
; Run the BASIC program.
; Run the BASIC program.
; Run the BASIC program.
; Run the BASIC program.
; Displays data.
; Displays data.
; Displays data.
; Value of hand check input
; Value of hand check input
; Value of hand check input
; Value of hand check input
; Value of the internal register : 0FB2 (Hexadecimal)
; Value of the internal register
; Value of the internal register
; Value of the internal register
; Value of general output
; Value of general output
; Value of general output
; Value of general output
: 1 (Hexadecimal)
: 1 (Hexadecimal)
: 1 (Hexadecimal)
: 1 (Hexadecimal)
: 0FB2 (Hexadecimal)
: 0FB2 (Hexadecimal)
: 0FB2 (Hexadecimal)
: 30BA (Hexadecimal)
: 30BA (Hexadecimal)
: 30BA (Hexadecimal)
: 30BA (Hexadecimal)
2 2 2 2 Explanation of Commands
Explanation of Commands
Explanation of Commands
Explanation of Commands
DR (Data Read) 2 2 2 2 -19
DR (Data Read)
DR (Data Read)
DR (Data Read)
-19
-19
-19

Advertisement

Table of Contents
loading

Table of Contents