JPH01114906A - Jump control system for pc - Google Patents

Jump control system for pc

Info

Publication number
JPH01114906A
JPH01114906A JP27288887A JP27288887A JPH01114906A JP H01114906 A JPH01114906 A JP H01114906A JP 27288887 A JP27288887 A JP 27288887A JP 27288887 A JP27288887 A JP 27288887A JP H01114906 A JPH01114906 A JP H01114906A
Authority
JP
Japan
Prior art keywords
jump
jumped
program
programs
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP27288887A
Other languages
Japanese (ja)
Inventor
Kunio Tanaka
久仁夫 田中
Toru Watanabe
徹 渡辺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fanuc Corp
Original Assignee
Fanuc Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fanuc Corp filed Critical Fanuc Corp
Priority to JP27288887A priority Critical patent/JPH01114906A/en
Publication of JPH01114906A publication Critical patent/JPH01114906A/en
Pending legal-status Critical Current

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

PURPOSE:To attain plural jumping operation only by one instruction providing a jump instruction with a program having parameters of a program to be jumped in a jump control system for executing ladder programs and selecting one of the parameters in the table in accordance with a logical condition to execute the jumping operation. CONSTITUTION:Plural ladder-like stages constituted of connecting contacts A-H for executing a jump instruction to coils D300.0-D300.7 in series are connected between a side for outputting program function commands and programs to be jumped. On the other hand, a contact ACT is formed independently of said contacts A-H, and when the contact ACT is turned on, an address 11 for determining the condition of a program to be jumped is generated and one of the conditions of the coils D300.0-D300.7 is selected to determined the program to be jumped. Namely, functional instructions 20-27 indicating the programs to be jumped are arranged between the side for outputting the functional instructions and the programs to be jumped and respective coils are excited based on the operation of the ladder type contacts A-H to activate plural instructions stored in the corresponding instructions 20-27.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はラダープログラムの演算処理を行うPCのジャ
ンプ制御方式に関し、特に複数のジャンプ先にジャンプ
できるようにしたPCのジャンプ制御方式に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a jump control method for a PC that performs arithmetic processing of a ladder program, and particularly to a jump control method for a PC that allows jumping to a plurality of jump destinations.

〔従来の技術〕[Conventional technology]

PC(プログラマブル・コントローラ)ではラダープロ
グラムと称するリレーの接点とコイルを使用したプログ
ラムが広く使用されている。リレーのコイルと接点のみ
では複雑な機能を処理することができないので、特殊な
命令は機能命令として指令し、これをマイクロプロセッ
サが解読して実行するようにしている。
In PCs (programmable controllers), a program called a ladder program that uses relay contacts and coils is widely used. Since relay coils and contacts alone cannot process complex functions, special commands are issued as functional commands, which are then decoded and executed by a microprocessor.

ラダープログラムではジャンプ命令を機能命令として使
用しているが、この命令はジャンプ命令である’ J 
U M P Jとジャンプ先を示すrJUNPEJとの
対の命令で構成され、’ J U N P J命令があ
ると、’JUMPEJまでジャンプするように構成され
ている。
A jump instruction is used as a functional instruction in a ladder program, but this instruction is a jump instruction.
It is composed of a pair of instructions, UMPJ and rJUNPEJ indicating the jump destination, and is configured to jump to ``JUMPEJ'' when there is a ``JUNPEJ'' instruction.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

しかし、従来のジャンプ命令では、1個のジャンプ指令
で1個のジャンプ先にしかジャンプできず、条件によっ
て複数のジャンプ先にジャンプしたいときは、多数のジ
ャンプ命令を組み合わせて指令する必要があり、ラダー
プログラムの作成が煩雑になるという問題点があった。
However, with conventional jump commands, you can only jump to one jump destination with one jump command, and if you want to jump to multiple jump destinations depending on the conditions, you must issue a combination of multiple jump commands. There was a problem that creating a ladder program was complicated.

本発明の目的は上記問題点を解決し、1個のジャンプ命
令で複数のジャンプ先にジャンプできるようにしたPC
のジャンプ制御方式を提供することにある。
The purpose of the present invention is to solve the above-mentioned problems and to provide a PC that can jump to multiple jump destinations with a single jump command.
The purpose of this invention is to provide a jump control method.

〔問題点を解決するための手段〕[Means for solving problems]

本発明では上記の問題点を解決するために、ラダープロ
グラムを実行するPC(プログラマブル・コントローラ
)のジャンプ制御方式において、 複数のジャンプ先をパラメータとするテーブルを設けた
ジャンプ命令を設け、 論理条件によって、該テーブルのパラメータを選択し、 該選択されたパラメータの示すジャンプ先にジャンプす
ることを特徴とするPCめジャンプ制御方式が、 提供される。
In order to solve the above-mentioned problems, the present invention provides a jump command that has a table with multiple jump destinations as parameters in the jump control method of a PC (programmable controller) that executes a ladder program. , a jump control method for a PC is provided, which is characterized by: selecting a parameter in the table, and jumping to a jump destination indicated by the selected parameter.

〔作用〕[Effect]

他の論理条件によって、テーブル内のパラメータを選択
し、この選択されたパラメータの示すジャンプ先にジャ
ンプする。
Depending on other logical conditions, a parameter in the table is selected and a jump is made to the jump destination indicated by the selected parameter.

従って、1個の命令で複数のジャンプ先にジャンプする
ように制御することができる。
Therefore, it is possible to control jumps to a plurality of jump destinations with one command.

〔実施例〕〔Example〕

以下本発明の一実施例を図面に基づいて説明する。 An embodiment of the present invention will be described below based on the drawings.

第1図に本発明の一実施例のPCのジャンプ制御方式の
ラダープログラムを示す。図において、A、B、C・・
−−−−−−一−・−・−Hは接点であり、D300゜
0〜D300.7はコイルである。
FIG. 1 shows a ladder program for a PC jump control system according to an embodiment of the present invention. In the figure, A, B, C...
---------H is a contact, and D300°0 to D300.7 are coils.

ACTは接点であり、この接点がオンのときにジャンプ
命令が実行される。10はジャンプ命令を示す機能命令
であり、11はジャンプ先の条件を決めるアドレスを示
す。ここでは、コイルD300、O〜D300.7の条
件によって、ジャンプ先が選択されることを示す。
ACT is a contact, and when this contact is on, a jump instruction is executed. Reference numeral 10 indicates a function instruction indicating a jump instruction, and reference numeral 11 indicates an address that determines the conditions of the jump destination. Here, it is shown that the jump destination is selected according to the conditions of coils D300 and O to D300.7.

20.21〜27はジャンプ先を示す機能命令である。20.21 to 27 are function commands indicating jump destinations.

例えば接点Aがオンしているときは、コイルD300.
0がオンなり、JUMPEO(20)にジャンプする。
For example, when contact A is on, coil D300.
0 turns on and jumps to JUMPEO (20).

同様に接点Bがオンきときは、コイルD300.1がオ
ンになり、JUMPl(21)ヘジャンプする。以下、
同様に対応している。
Similarly, when contact B is on, coil D300.1 is turned on and jumps to JUMP1 (21). below,
The same applies.

第2図にアドレスD300番地の内容を示す。FIG. 2 shows the contents of address D300.

D300番地は8ビツトで構成されており、各ビットが
右からそれぞれD300.01D300゜1〜D300
.7のコイルに相当する。図では、D300.1のコイ
ルがオンして、アドレスD300番地の右から2ビツト
目が’IJになっている状態を示す。
Address D300 consists of 8 bits, and each bit is D300.01D300°1 to D300 from the right.
.. This corresponds to 7 coils. The figure shows a state in which the coil D300.1 is turned on and the second bit from the right of address D300 is 'IJ'.

第3図にジャンプ先を選択するテーブルを示す。FIG. 3 shows a table for selecting a jump destination.

図において、31はジャンプ先の番号であり、第1図の
’JUMEJの番号に相当し、これはアドレス300番
地の各ビット番号と一致する。32はこのジャンプ先の
アドレスである。
In the figure, 31 is the jump destination number, which corresponds to the number 'JUMEJ' in FIG. 1, which coincides with each bit number of address 300. 32 is the address of this jump destination.

第2図の例ではコイルD300.1がオンであり、これ
に対応するジャンプ先’JUMPIJが選択され、アド
レス1が選択される。ジャンプ命令の実行は、アドレス
1とジャンプ命令が格納されているアドレスとの相対ア
ドレスを算出し、’JUMPIJすなわちアドレス1ヘ
ジヤンプする。
In the example of FIG. 2, coil D300.1 is on, the corresponding jump destination 'JUMPIJ' is selected, and address 1 is selected. To execute a jump instruction, calculate the relative address between address 1 and the address where the jump instruction is stored, and execute 'JUMPIJ, that is, jump to address 1.

上記の説明では、1個のジャンプ命令で複数のジャンプ
先にジャンプする例を示したが、ジャンプ先を共有する
ことにより、複数個のジャンプ命令から複数個のジャン
プ先ヘジャンプするように制御することもできる。
In the above explanation, an example of jumping to multiple jump destinations with one jump instruction was shown, but by sharing the jump destination, it is also possible to control jumping to multiple jump destinations from multiple jump instructions. You can also do it.

第4図に本発明を実施するためのPC(プログラマブル
・コントローラ)のハードウェアの構成図を示す。図に
おいて、1はマイクロプロセッサであり、pc全全体制
御を行う。2は一定時間毎に割込信号を発生する周期信
号発生回路である。
FIG. 4 shows a hardware configuration diagram of a PC (programmable controller) for implementing the present invention. In the figure, 1 is a microprocessor, which controls the entire PC. 2 is a periodic signal generation circuit that generates an interrupt signal at regular intervals.

この割込信号によって、マイクロプロセッサ1は各種の
割込み命令を実行する。3は管理プログラムとラダープ
ログラムの格納されているROMであり、マイクロプロ
セッサ1はこのROM3の管理プログラムの管理下にラ
ダープログラムを実行してPCを制御する。4は各種の
データ等が記憶されるワーク用RAMである。5はRA
Mであり、パラメータ等の電源切断後も記憶すべきデー
タ等がが格納されている。RAM5は電源がオフになっ
ても、パラメータ等が保持できるようにバッテリ6でバ
ッテリバックアップされている。7は入力回路であり、
機械等の外部からの入力信号を受信するレシーバ回路を
有し、入力信号をバスを通してマイクロプロセッサが読
出せるようにする。
In response to this interrupt signal, the microprocessor 1 executes various interrupt instructions. A ROM 3 stores a management program and a ladder program, and the microprocessor 1 executes the ladder program under the management of the management program in the ROM 3 to control the PC. 4 is a work RAM in which various data and the like are stored. 5 is RA
M, and stores data such as parameters that should be stored even after the power is turned off. The RAM 5 is backed up by a battery 6 so that parameters and the like can be retained even when the power is turned off. 7 is an input circuit;
It has a receiver circuit that receives an input signal from an external device such as a machine, and allows the input signal to be read by the microprocessor through a bus.

8は出力回路であり、機械等を動作させるための出力信
号を出力する。
8 is an output circuit, which outputs an output signal for operating a machine or the like.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明では、ラダープログラムにお
ける機能命令であるジャンプ命令にジャンプ先のパラメ
ータを有するチー→゛ルを持たせ、論理条件によって、
複数のアトし・スにジャンプできるようにしたので、ラ
ダープログラムの作成が節単になる。
As explained above, in the present invention, a jump instruction, which is a functional instruction in a ladder program, has a team having a jump destination parameter, and depending on logical conditions,
Since it is now possible to jump to multiple locations, creating ladder programs becomes simpler.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の一実施例のPCのジャンプ制御方式の
ラダープログラムを示す図、 第2図はジャンプ先を決めるアドレスの内容を示す図、 第3図はジャンプ先を選択するテーブルを示す図、 第4図は本発明を実施するためのPCのハードウェアの
構成図である。 1−・−−一−−−−−−−−−マイクロプロセッサ2
−−−−−−−・−一−−−−・周期信号発生回路3−
−−−−−−−・−・・・・・ROM4−・−・−一−
−・−RAM 5−−−−−−−−−・−・・・RAM7−−−−−−
−−−−−−・−入力回路8−・・−−−−−−−−−
一−−出力回路10−−−−−−−−−−−−・−ジャ
ンプ命令11・−・−−−イーーーーー・ジャンプ条件
を示すアドレス31−−−−−−−−−−−−−−−ジ
ャンプ先番号32−−−−−−−−−−一・−ジャンプ
先のアドレス特許出願人 ファナック株式会社 代理人   弁理士  服部毅巖 第1図 第3図 第4図  。
Fig. 1 is a diagram showing a ladder program for a PC jump control method according to an embodiment of the present invention, Fig. 2 is a diagram showing the contents of an address that determines a jump destination, and Fig. 3 is a diagram showing a table for selecting a jump destination. FIG. 4 is a configuration diagram of the hardware of a PC for implementing the present invention. 1-・--1-----------Microprocessor 2
−−−−−−−・−1−−−−・Periodic signal generation circuit 3−
−−−−−−−・−・・・・・ROM4−・−・−1−
---RAM 5----------------- RAM7--
−−−−−−・−Input circuit 8−−−−−−−−−−
1--Output circuit 10--Jump instruction 11-----Eeeee--Address 31 indicating jump condition----- -- Jump destination number 32 --- Jump destination address Patent applicant FANUC Co., Ltd. Representative Patent attorney Takeshi Hattori Figure 1 Figure 3 Figure 4.

Claims (1)

【特許請求の範囲】[Claims] (1)ラダープログラムを実行するPC(プログラマブ
ル・コントローラ)のジャンプ制御方式において、 複数のジャンプ先をパラメータとするテーブルを設けた
ジャンプ命令を設け、 論理条件によって、該テーブルのパラメータを選択し、 該選択されたパラメータの示すジャンプ先にジャンプす
ることを特徴とするPCのジャンプ制御方式。
(1) In the jump control method of a PC (programmable controller) that executes a ladder program, a jump command is provided that has a table with multiple jump destinations as parameters, and parameters in the table are selected according to logical conditions, and the corresponding A PC jump control method characterized by jumping to a jump destination indicated by a selected parameter.
JP27288887A 1987-10-28 1987-10-28 Jump control system for pc Pending JPH01114906A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP27288887A JPH01114906A (en) 1987-10-28 1987-10-28 Jump control system for pc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP27288887A JPH01114906A (en) 1987-10-28 1987-10-28 Jump control system for pc

Publications (1)

Publication Number Publication Date
JPH01114906A true JPH01114906A (en) 1989-05-08

Family

ID=17520154

Family Applications (1)

Application Number Title Priority Date Filing Date
JP27288887A Pending JPH01114906A (en) 1987-10-28 1987-10-28 Jump control system for pc

Country Status (1)

Country Link
JP (1) JPH01114906A (en)

Similar Documents

Publication Publication Date Title
JP4567505B2 (en) Inverter device
JPS6134605A (en) Controlling system of programmable controller
JPH01114906A (en) Jump control system for pc
CN104969462B (en) Inverter control device and peripheral device thereof
JP3432728B2 (en) Programmable controller
JPH01114905A (en) Jump control system for pc
WO1988006751A1 (en) Processor for plc and plc
JPH07248918A (en) Microprocessor
JPS60241104A (en) Arithmetic method of digital controller
JPS62248005A (en) Sequence program executing system
JP2970142B2 (en) Programmable controller
JPH01311353A (en) Interruption control device
JPS63317834A (en) Ladder program processing system
JPS5998212A (en) Confirming system of execution speed of sequence controller
JPH11134010A (en) Program executing method of programmable controller
JPS58125109A (en) Programmable controller
JPH02189666A (en) Control circuit for microcomputer
JPH02189667A (en) Control circuit for microcomputer
JPH10275012A (en) Equipment control method and device therefor
JPS62262105A (en) Programmable controller
JPH0228836A (en) Load system for numerical value control device
JPS63111533A (en) One chip microcomputer
JPH0281206A (en) Ladder program processing system
JPS6170643A (en) Input and output arithmetic processing system of programmable controller
JPH02148106A (en) Execution system for sequence program