言語編
iii
KSL series Robot Controller
目 次
第1章 ロボット言語の概要 ···························································· 1-1
1.1 ロボットの動作 ······························································ 1-1
1.2 ロボット言語とは ···························································· 1-2
1.3 命令語の種類 ································································ 1-3
第2章 ロボット言語の書式 ···························································· 2-1
2.1 プログラムの構成 ···························································· 2-1
2.1.1 ファイル ····························································· 2-1
2.1.2 プログラム ··························································· 2-1
2.1.3 位置データ ··························································· 2-2
2.2 使用できる文字 ······························································ 2-2
2.3 識別子 ······································································ 2-2
2.4 変数と定数 ·································································· 2-3
2.4.1 スカラ型データ ························································ 2-3
2.4.2 ベクトル型データ ······················································ 2-5
2.4.3 システム変数 ··························································· 2-8
2.4.4 システム定数 ·························································· 2-9
2.5 式 ······································································· 2-10
2.5.1 演算式 ······························································· 2-11
2.5.2 論理式 ······························································· 2-15
2.6 ラベル ······································································ 2-15
2.7 注釈 ······································································· 2-16
2.8 プログラム ·································································· 2-16
2.8.1 プログラムの宣言 ······················································ 2-16
2.8.2 サブプログラム ························································ 2-17
2.8.3 ライブラリ ··························································· 2-19
2.8.4 マルチタスク処理 ····················································· 2-22
2.8.5 グローバル変数定義 ··················································· 2-27
2.8.6 配列型変数 ··························································· 2-28
第3章 命令語の説明 ·································································· 3-1
3.1 命令語の記載書式 ···························································· 3-1
3.2 命令語の説明 ·································································· 3-6
第4章 プログラム例 ·································································· 4-1