Counter Number; Character String Numbers; About The Operation Data And The Comparison Value; Direct Execution - Mitsubishi Electric MELFA Instruction Manual

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

Advertisement

(4) Counter number

(4) Counter number
(4) Counter number
(4) Counter number
The range of counter number is 1-99. When program is different from each other, counters from 1-90 are
The range of counter number is 1-99. When program is different from each other, counters from 1-90 are
The range of counter number is 1-99. When program is different from each other, counters from 1-90 are
The range of counter number is 1-99. When program is different from each other, counters from 1-90 are
memorized as individual data even if they have the same number. On the other hand, counters from 91-99 are
memorized as individual data even if they have the same number. On the other hand, counters from 91-99 are
memorized as individual data even if they have the same number. On the other hand, counters from 91-99 are
memorized as individual data even if they have the same number. On the other hand, counters from 91-99 are
memorized as common. Further, you can appoint counter number indirectly by the value of counter.
memorized as common. Further, you can appoint counter number indirectly by the value of counter.
memorized as common. Further, you can appoint counter number indirectly by the value of counter.
memorized as common. Further, you can appoint counter number indirectly by the value of counter.
An example 10 SC 21 ,10
An example
An example
An example
【 Relating Commands 】 CL,CP,CR,DC,IC,OC,SC
【 Relating Commands 】 CL,CP,CR,DC,IC,OC,SC
【 Relating Commands 】 CL,CP,CR,DC,IC,OC,SC
【 Relating Commands 】 CL,CP,CR,DC,IC,OC,SC

(5) Character string numbers

(5) Character string numbers
(5) Character string numbers
(5) Character string numbers
By using a character string number, character strings (max. 120 alphanumeric or symbol characters) can be
By using a character string number, character strings (max. 120 alphanumeric or symbol characters) can be
By using a character string number, character strings (max. 120 alphanumeric or symbol characters) can be
By using a character string number, character strings (max. 120 alphanumeric or symbol characters) can be
communicated to the external device over the serial channel.
communicated to the external device over the serial channel.
communicated to the external device over the serial channel.
communicated to the external device over the serial channel.
The character string number can be specified from $1 to $99. If the program differs between $1 and $90, these will
The character string number can be specified from $1 to $99. If the program differs between $1 and $90, these will
The character string number can be specified from $1 to $99. If the program differs between $1 and $90, these will
The character string number can be specified from $1 to $99. If the program differs between $1 and $90, these will
be registered as separate data even if the number is the same. On the other hand, $91 to $99 are common for all
be registered as separate data even if the number is the same. On the other hand, $91 to $99 are common for all
be registered as separate data even if the number is the same. On the other hand, $91 to $99 are common for all
be registered as separate data even if the number is the same. On the other hand, $91 to $99 are common for all
programs. Depending on the counter number value (details), the character string number cannot be specified
programs. Depending on the counter number value (details), the character string number cannot be specified
programs. Depending on the counter number value (details), the character string number cannot be specified
programs. Depending on the counter number value (details), the character string number cannot be specified
indirectly.
indirectly.
indirectly.
indirectly.
An example
An example 10 SC $1, "ABC"
An example
An example
【 Relating commands 】 CL, CP, CR, INP, LG, NE, EQ, SM, SC
【 Relating commands 】 CL, CP, CR, INP, LG, NE, EQ, SM, SC
【 Relating commands 】 CL, CP, CR, INP, LG, NE, EQ, SM, SC
【 Relating commands 】 CL, CP, CR, INP, LG, NE, EQ, SM, SC

(6) About the operation data and the comparison value

(6) About the operation data and the comparison value
(6) About the operation data and the comparison value
(6) About the operation data and the comparison value
The operation data and the comparison value have the method of specifying the content of the method of directly
The operation data and the comparison value have the method of specifying the content of the method of directly
The operation data and the comparison value have the method of specifying the content of the method of directly
The operation data and the comparison value have the method of specifying the content of the method of directly
specifying the numerical value (Specification by the decimal number and the hexadecimal number is possible) and
specifying the numerical value (Specification by the decimal number and the hexadecimal number is possible) and
specifying the numerical value (Specification by the decimal number and the hexadecimal number is possible) and
specifying the numerical value (Specification by the decimal number and the hexadecimal number is possible) and
the counter number.
the counter number.
the counter number.
the counter number.
When the numerical value is directly specified by the decimal number.When the numerical value is specifiedby the
When the numerical value is directly specified by the decimal number.When the numerical value is specifiedby the
When the numerical value is directly specified by the decimal number.When the numerical value is specifiedby the
When the numerical value is directly specified by the decimal number.When the numerical value is specifiedby the
hexadecimal number, "&" is input to the head of the hexadecimal number.
hexadecimal number, "&" is input to the head of the hexadecimal number.
hexadecimal number, "&" is input to the head of the hexadecimal number.
hexadecimal number, "&" is input to the head of the hexadecimal number.
When the content of the counter number is specified, "@" is input to the head of the counter number.
When the content of the counter number is specified, "@" is input to the head of the counter number.
When the content of the counter number is specified, "@" is input to the head of the counter number.
When the content of the counter number is specified, "@" is input to the head of the counter number.
An
An xample)
An
An
xample)
xample)
xample)
   
   
   
   
   
   
   
   
   
   
   
   
【Relating commands】 : ADD, AN, DIV, EQ, LG, MUL, NE OR, SM, SUB, XO
【Relating commands】 : ADD, AN, DIV, EQ, LG, MUL, NE OR, SM, SUB, XO
【Relating commands】 : ADD, AN, DIV, EQ, LG, MUL, NE OR, SM, SUB, XO
【Relating commands】 : ADD, AN, DIV, EQ, LG, MUL, NE OR, SM, SUB, XO

(7) Direct execution

(7) Direct execution
(7) Direct execution
(7) Direct execution
If you transfer command to the controller without line number by personal computer or teaching box, it will be
If you transfer command to the controller without line number by personal computer or teaching box, it will be
If you transfer command to the controller without line number by personal computer or teaching box, it will be
If you transfer command to the controller without line number by personal computer or teaching box, it will be
executed instantaneously. (Not be programed.) Especially hold with care in case executing moving command. You
executed instantaneously. (Not be programed.) Especially hold with care in case executing moving command. You
executed instantaneously. (Not be programed.) Especially hold with care in case executing moving command. You
executed instantaneously. (Not be programed.) Especially hold with care in case executing moving command. You
can execute PRN and RS-232C communication command even if the program is running.
can execute PRN and RS-232C communication command even if the program is running.
can execute PRN and RS-232C communication command even if the program is running.
can execute PRN and RS-232C communication command even if the program is running.
Note:Make the DTR control shown in the previous item "2.2 Setting of RS-232C" effective when you do direct
Note:Make the DTR control shown in the previous item "2.2 Setting of RS-232C" effective when you do direct
Note:Make the DTR control shown in the previous item "2.2 Setting of RS-232C" effective when you do direct
Note:Make the DTR control shown in the previous item "2.2 Setting of RS-232C" effective when you do direct
execution with RS-232C.
execution with RS-232C.
execution with RS-232C.
execution with RS-232C.
A direct execution is to make the MODE changeover switch of the controller control panel AUTO (Ext.), and
A direct execution is to make the MODE changeover switch of the controller control panel AUTO (Ext.), and
A direct execution is to make the MODE changeover switch of the controller control panel AUTO (Ext.), and
A direct execution is to make the MODE changeover switch of the controller control panel AUTO (Ext.), and
do it.
do it.
do it.
do it.

(8) Internal register

(8) Internal register
(8) Internal register
(8) Internal register
The data taken from external I/O are memorized in so called "internal register", then used for conditional
The data taken from external I/O are memorized in so called "internal register", then used for conditional
The data taken from external I/O are memorized in so called "internal register", then used for conditional
The data taken from external I/O are memorized in so called "internal register", then used for conditional
branching, comparison, logical bit operation, counter setting, and etc. When you carry out conditional branching on
branching, comparison, logical bit operation, counter setting, and etc. When you carry out conditional branching on
branching, comparison, logical bit operation, counter setting, and etc. When you carry out conditional branching on
branching, comparison, logical bit operation, counter setting, and etc. When you carry out conditional branching on
the basis of counter value, you use this internal register too.
the basis of counter value, you use this internal register too.
the basis of counter value, you use this internal register too.
the basis of counter value, you use this internal register too.
【 Relating Commands 】 AN,CL,CP,DR,EQ,ID,INP,NE,OR,SM,TB,XO
【 Relating Commands 】 AN,CL,CP,DR,EQ,ID,INP,NE,OR,SM,TB,XO
【 Relating Commands 】 AN,CL,CP,DR,EQ,ID,INP,NE,OR,SM,TB,XO
【 Relating Commands 】 AN,CL,CP,DR,EQ,ID,INP,NE,OR,SM,TB,XO

(9) Character string register

(9) Character string register
(9) Character string register
(9) Character string register
The character string led in to the external device over the serial channel is stored in the memory called the
The character string led in to the external device over the serial channel is stored in the memory called the
The character string led in to the external device over the serial channel is stored in the memory called the
The character string led in to the external device over the serial channel is stored in the memory called the
"character string register". It is then used for making settings of the character string comparison or character
"character string register". It is then used for making settings of the character string comparison or character
"character string register". It is then used for making settings of the character string comparison or character
"character string register". It is then used for making settings of the character string comparison or character
string number to jump conditions.
string number to jump conditions.
string number to jump conditions.
string number to jump conditions.
【 Relating commands】 CL, CP, INP, LG, NE, EQ, SM
【 Relating commands】 CL, CP, INP, LG, NE, EQ, SM
【 Relating commands】 CL, CP, INP, LG, NE, EQ, SM
【 Relating commands】 CL, CP, INP, LG, NE, EQ, SM
10 SC 21 ,10
10 SC 21 ,10
10 SC 21 ,10
:Sets value10 in counter 21.
:Sets value10 in counter 21.
:Sets value10 in counter 21.
:Sets value10 in counter 21.
20 IC @ 21
20 IC @ 21
:Adds one to counter 10, the value of counter 21.
:Adds one to counter 10, the value of counter 21.
20 IC @ 21
20 IC @ 21
:Adds one to counter 10, the value of counter 21.
:Adds one to counter 10, the value of counter 21.
10 SC $1, "ABC"
10 SC $1, "ABC" :Character string "ABC" is set in character string number 1
10 SC $1, "ABC"
:Character string "ABC" is set in character string number 1
:Character string "ABC" is set in character string number 1
:Character string "ABC" is set in character string number 1
20 CP $1
20 CP $1
20 CP $1
20 CP $1
:The details of character string number 1 are set in the character string
:The details of character string number 1 are set in the character string
:The details of character string number 1 are set in the character string
:The details of character string number 1 are set in the character string
register
register
register
register
30 CL $2
30 CL $2
30 CL $2
30 CL $2
:The details of the character string register are set in character string
:The details of the character string register are set in character string
:The details of the character string register are set in character string
:The details of the character string register are set in character string
number 2.
number 2.
number 2.
number 2.
10 ADD 10
10 ADD 10
10 ADD 10
10 ADD 10
;10 is added to internal register.
;10 is added to internal register.
;10 is added to internal register.
;10 is added to internal register.
20 ADD &000A
20 ADD &000A
20 ADD &000A
20 ADD &000A
;A ;A ;A ;A(hexadecimal number)
(hexadecimal number)
(hexadecimal number)
(hexadecimal number) is added to internal register.
30 SC 1, 10
30 SC 1, 10
; ; ; ; 10 is setted to counter number 1.
10 is setted to counter number 1.
30 SC 1, 10
30 SC 1, 10
10 is setted to counter number 1.
10 is setted to counter number 1.
40 ADD @1
40 ADD @1
40 ADD @1
40 ADD @1
; ; ; ; The value of counter number 1(10) is added to internal register.
The value of counter number 1(10) is added to internal register.
The value of counter number 1(10) is added to internal register.
The value of counter number 1(10) is added to internal register.
is added to internal register.
is added to internal register.
is added to internal register.
Explanation of command 2 2 2 2 -7 -7 -7 -7
Explanation of command
Explanation of command
Explanation of command
2 2 2 2 Explanation of Commands
Explanation of Commands
Explanation of Commands
Explanation of Commands

Advertisement

Table of Contents
loading

Table of Contents