? (入力)

 ? (代入)
<目次> 

記載内容は fx-5800P, fx-9860GII, fx-CG20, fx-CG50 で確認したものです.
本プロジェクトは進行中のため、追記編集があるrかも知れません.


機 種
fx-5800P

書 式
  1. ?V (Vは変数)
  2. "<A>"?V (<A>は文字列、Vは変数)

入力方法
  • fx-5800P: [FUNCTION][3](3:PROG) [1](1:?)
機 能
変数Vに値を入力する.

説 明
  1. ?V と記述すると、左端に変数名 V を使い V? と表示され、改行して右橋に V の現在の値が表示される. 値をキー入力し [EXE] キーを押すとさらに改行して左端に入力した値が表示される。値をキー入力せず [EXE] キーを押せば V の現在の値が維持される.改行するたびに内部カーソル行が1つ増える.
  2. "STRING"?V と記述すると、左端に STRING? と表示1され、改行して右端に V の現在の値が表示される. 他は 1 項と同じ.
注 意
  1. ?命令は fx-5800P (fx-FC10 Pro) で使えるが、fx-9860G シリーズや fx-CG20/50 では使えずエラーになる.


関連コマンド:
 ?→

Copyright (C) 2013 Krtyski / egadget.blog.fc2.com  All Rights Reserved.


テーマ : プログラム関数電卓
ジャンル : コンピュータ

PlotOff コマンド

 PlotOff
<目次> 

記載内容は fx-5800P, fx-9860GII (OS 2.04), fx-CG20 (OS 2.00) で確認したものです.
本プロジェクトは進行中のため、追記編集があるrかも知れません.


機 種
fx-9860GII, fx-CG20/10

書 式
PlotOff <X>,<Y>

入力方法
[SHIFT] [F4] (Sketch) [F6] (⊳) [F1] (PLOT) [F3] (Pl⋅Off)

機 能
座標 (<X>, <Y>) に対応するピクセルを消去する.

説 明
  1. LCD上の座標の正確な位置は、デフォルトの論理座標系か ViewWindow座標系に従う.
  2. <X> と <Y> は、数値、変数 あるいは 値を返す式が使える.
  3. UNDOCUMENTED PlotOff が実行された後、<X> と <Y> の値が、それぞれ自動的に変数 XY に代入される. 以下のコードを参照のこと.
ClrGraph
CoordOff
GridOff
AxesOff
LabelOff
ViewWindow 0,126,0,0,62,0
F-Line 0,0,62,62
For 0->I To 62
PlotOff I,I
Text 1,1,X
Text 18,1,Y

Next

ポイント
  • プログラム中、本コマンドを使うと変化する変数 XY の値に留意すること、説明 3 参照.   

関連コマンド: PlotOn, PlotChg, ViewWindow, ClrGraph

Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.


テーマ : プログラム関数電卓
ジャンル : コンピュータ

PlotOn コマンド

 PlotOn
<目次> 

記載内容は fx-5800P, fx-9860GII (OS 2.04), fx-CG20 (OS 2.00)で確認したものです.
本プロジェクトは進行中のため、追記編集があるrかも知れません.


機 種
fx-9860GII, fx-CG20/10

書 式
PlotOn <X>,<Y>

入力方法
[SHIFT] [F4] (Sketch) [F6] (⊳) [F1] (PLOT) [F2] (Pl⋅On)

機 能
座標 (<X>, <Y>) に対応するピクセルを On にする.

説 明
  1. LCD上の座標の正確な位置は、デフォルトの論理座標系か ViewWindow座標系に従う.
  2. <X> と <Y> は、数値、変数 あるいは 値を返す式が使える.
  3. UNDOCUMENTED PlotOn が実行された後、<X><Y> の値が、それぞれ自動的に変数 XY に自動的に代入される.
ClrGraph
CoordOff
GridOff
AxesOff
LabelOff
ViewWindow 0,126,0,0,62,0
For 0->I To 62
PlotOn I,I
Text 1,1,X
Text 18,1,Y

Next

ポイント
  • プログラム中、本コマンドを使うと変化する変数 XY の値に留意すること、説明 3 参照.   

関連コマンド: PlotOff, PlotChg, ViewWindow, ClrGraph

Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.


テーマ : プログラム関数電卓
ジャンル : コンピュータ

PlotOff Command

 PlotOff
<Inside Casio Basic> <C.Basic>

This content is checked by fx-5800P, fx-9860GII (OS 2.04) and fx-CG20 (OS 2.00).
This is on-going project, any changes may be made.


Model

fx-9860GII and fx-CG20/10


Syntax

PlotOff
 <X>,<Y>


Key Press

[SHIFT] [F4] (Sketch) [F6] (⊳) [F1] (PLOT) [F3] (Pl⋅Off)


Function

Clear a pixel corresponding to coordinate (<X>, <Y>).


Description
  1. Exact position of the coordinate on LCD is based on currently setup coordinate system, Default Logical or ViewWindow Coordinate System.
  2. <X> and <Y> can be a number, a variable or an expression which returns value.
  3. UNDOCUMENTED After procssing PlotOff, value of <X> and <Y> are automatically substituted into variable X and Y subsequently. See following sample code;
ClrGraph
CoordOff
GridOff
AxesOff
LabelOff
ViewWindow 0,126,00,62,0
F-Line 0,0,62,62
For 0->I To 62
PlotOff I,I
Text 1,1,X
Text 18,1,Y

Next


Note
  1. Pay attention to value of variables X and Y which are changed by this command in your program, see  Desc 3.



See also: PlotOn, PlotChg, ViewWindow, ClrGraph

Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.

テーマ : プログラム関数電卓
ジャンル : コンピュータ

Cls Command

 Cls
<Inside Casio Basic> <C.Basic>

This content is checked by fx-5800P, fx-9860GII (OS 2.04) and fx-CG20 (OS 2.00).
This is on-going project, and any changes may be made.


Model

fx-5800P, fx-9860GII and fx-CG20/10


Syntax

Cls


Key Press

- fx-5800P: [FUNCTION] [3] (3:PROG) [▼] [▼] [5] (5:Cls)
- fx-9860GII, fx-CG20/10: [SHIFT] [F4] (Sketch) [F1] (Cls)


Function

- fx-5800P: Clear text display.
- fx-9860GII and fx-CG-20/10:Clear graphics display.


Description
  1. UNDOCUMENTED Cls and ClrGraph on fx-9860GII and fx-CG-20/10 clear graphics display. ClrGraph also changes coordinate system into Default Logical Coordinate System and modify dot pitch (Xdot) to 0.1.
  2. Cls simply just clears graphics.
  3. ClrText on fx-9860GII and fx-CG20/10 clears text display.
  4. UNDOCUMENTED With fx-5800P, Cls resets internal cursor row to top row, for details see Control of Internal Cursor Row.
  5. UNDOCUMENTED With fx-9860GII and fx-CG20/10, ClrText resets internal cursor row to top row, for details see Control of Internal Cursor Row.

Note

Cls command on fx-5800P is not compatible on fx-9860GII and fx-CG20/10.




See also:
 ClrText, ClrGraph, Control of Internal Cursor Row

Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.


テーマ : プログラム関数電卓
ジャンル : コンピュータ

Control of Internal Cursor Row

 Control of Internal Cursor Row
<Inside Casio Basic> <C.Basic>

This content is checked by fx-5800P, fx-9860GII (OS 2.04) and fx-CG20 (OS 2.00).
This is on-going project, and any changes may be made.


Model

fx-5800P, fx-9860GII and fx-CG20


Function
 UNDOCUMENTED
  1. When ? (input), " " (output) or  (output of value and pause) runs, input and output row is automaticallly controled. The input and output row start with top row of LCD and incremented at the time one of those commands is carried out. Once the row comes to bottom (4th row with fx-5800P or 7th row with fx-9860GII and fx-CG20/10) the row stays at the bottom.
  2. Only after 'clear text' command Cls (fx-5800P) or ClrText (fx-9860GII and fx-CG20/10) runs, the cursor row is reset back to top row. 

Note
  1. Run "" (no charactor within " ") once, then the internal cursor moves down to the next row.


See also: ?, " "
, Cls, ClrText

Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.

テーマ : プログラム関数電卓
ジャンル : コンピュータ

Vriety of Coordinate Systems for Graphics

 Variety of Coordinate Systems for Graphics
<Inside Casio Basic> <C.Basic>

This content is checked by fx-9860GII (OS 2.04) and fxCG20 (OS 2.00).
This is on-going project and any changes may be made.


Model

fx-9860GII and fxCG20/10


Function
  1. Casio Basic provides variety of coordinate systems; Device Coordinate System and Logical Coordinate Systems.
  2. Device Coordinate System directly corresponds to pixeles of LCD. Left top pixel is pointed by cordinate (1,1) which means (first Row, first Column). Row is in vertical direction and only discrete (natural) number 1, 2, 3, ...  is avaiable. Column is in horizontal direction and also only discrete (natural) number is available. With fx-9860GII maximum Row coordinante value is 63 and maximum Column coordinate value is 127. With fx-CG20 max Row value is 187 and max Column vaue is 379. Out of the min - max range or fractional number is set as parameter, Casio Basic returns ERROR.
  3. Device Coordinate System is automatically applied only at usage of Text, PlxOn, PxlOff, PxlChg and PixlTest commands. User cannot expressly set Device Coordinate System.
  4. There are 2 deferent ways to setup Logical Coordinate System, a Default Logical Coordinate System and ViewWindow Logical Coordinate System.
  5. UNDOCUMENTED Default Logical Coordinate System is automatically chosen when ClrGraph command runs. This coordinate system can be expressed by Xmin = -6.3, Xmax = 6.3, Xscl = 0.1, Ymin = -3.1, Ymax = 3.1 and Yscl = 0.1, where those 6 variables are automatically set with those above values. In stead of ClrGraph, following codes gives same resut; Cls:-6.3->Xmin:6.3->Xmax:-3.1->Ymin:3.1->Ymax (where -> is substitution command).
  6. Using ViewWindow command any coordinate system can be defined freely. We call this here as ViewWindow Coordinate System. In stead of ViewWindow command, setting 6 variables (Xmin, Xmax, Xscl, Ymin, Ymax and Yscl) results in same setup; 


See also: ClrGraph, ViewWindow, Xmin, Xmax, Xscl, Ymin, Ymax, Yscl


Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.


テーマ : プログラム関数電卓
ジャンル : コンピュータ

Dislay Area

 Display Area
<Inside Casio Basic> <C.Basic>

This content is checked by fx-9860GII (OS 2.04) and fxCG20 (OS 2.00).
This is on-going project and any changes may be made.


Model

fx-5800P, fx-9860GII and fx-CG20/10


Description
  1. fx-9860GII or fx-CG20/10 has Text Screen and Graphics Screen. Those 2 screens are switched to each other, and text and graphcs cannot be displayed in a single screen.
  2. Text Screen of fx-5800P has 4 lines and 16 columns display area. Text Screen of fx-9860GII and fx-CG20/10 has 7 lines and 21 columns display area.
  3. UNDOCUMENTED Graphics Screen of fx-9860GII has 127 pixel x 63 pixel display area. Graphics Screen of fx-CG20/10 has 379 pixel x 187 pixel display area. 

Note
  1. UNDOCUMENTED For correct bitmap output with ViewWindow setup, user should be aware of the correct pixel numbers of graphics area. For example a bit map output should have problem if ViewWindow 0,126,0,0,63,0 is set instead of correct setup ViewWindow 0,127,0,0,62,0, See below in details;  
Example 1-1: Correct bitmap output as expected in code (fx-9860GII)
CodesResult
ClrGraph
CoordOff
GridOff
AxesOff
LabelOff
ViewWindow 0,126,0,0,62,0
For 0→Y To 62
SketchDot F-Line 0,Y,126-MOD(Y,2),Y
Next
DLINE2s

Example 1-2: Unexpected horizontal line appares with wrong ViewWindow seetup (fx-9860GII)
CodesResult
ClrGraph
CoordOff
GridOff
AxesOff
LabelOff
ViewWindow 0,126,0,0,63,0
For 0→Y To 63
SketchDot F-Line 0,Y,126-MOD(Y,2),Y
Next
DLINE3.1s
There actually are 63 pixels in vertical direction, but 64 dots is rogically defined in vertical. Psition of all plots are calculated and rounded to be one-to-one correspondence with LCD pixels. That's why the unexpected horizontal line appears. 
 
  
With fx-CG20/10, ViewWindow 0,126,0,0,62,0 and ViewWindow 0,126,0,0,63,0 gives similar but different results.
 
Example 2-1: Correct bitmap output as expected in code (fx-CG-20/10)
CodesResult
ClrGraph
CoordOff
GridOff
AxesOff
LabelOff
ViewWindow 0,126,0,0,62,0
For 0→Y To 62
SketchDot F-Line 0,Y,126-MOD(Y,2),Y
Next
DispOK_cg20

Example 2-2: Unexpected horizontal line appares with wrong ViewWindow setup (fx-CG20/10)
CodesResult
ClrGraph
CoordOff
GridOff
AxesOff
LabelOff
ViewWindow 0,126,0,0,63,0
For 0→Y To 63
SketchDot F-Line 0,Y,126-MOD(Y,2),Y
Next
DispProblem_cg20
Logically it's same result but fxpCG20/10 has different number (187) of pixels, so the result in detailed is not same.




See also: ClrGraph, ViewWindow


Copyright (C) 2013 - 2016 Krtyski / egadget.blog.fc2.com  All Rights Reserved.


テーマ : プログラム関数電卓
ジャンル : コンピュータ

→ (Substitution)

 → (Substitution)
<Inside Casio Basic> <C.Basic>

This content is checked by fx-5800P, fx-9860G Series (OS 2 or later) and fx-CG10/20/50.
This is on-going project, any changes may be made.


Model

fx-5800P, fx-9860GII and fx-CG10/20/50


Syntax

<A>V


Key Press

fx-5800P: [FUNCTION][3](3:PROG) [2](2:→)

fx-5800P: UNDOCUMENTED [SHIFT][RCL] 
fx-9860GII: [→]
fx-CG10/20/50: [→]


Function

Substitute value of <A> to variable V.


Description
  1. <A> can be a number, a variable or an expression which returns value.

Note
  1. UNDOCUMENTED After press [SHIFT][RCL] keys to input , Alpha Mode is automatically set. User does not need to press [ALPHA] key for a variable input. 


See also: ?→

Copyright (C) 2013 Krtyski / egadget.blog.fc2.com  All Rights Reserved.

テーマ : プログラム関数電卓
ジャンル : コンピュータ

" " (Text Display) Command

 " " (Text Display)
<Inside Casio Basic> <C.Basic>

This content is checked by fx-5800P, fx-9860G Series (OS 2 or later) and fx-CG10/20/50.
This is on-going project, any changes may be made.


Model

fx-5800P, fx-9860GII and fx-CG10/20/50


Syntax

"
<string>"


Key Press

fx-5800P: [ALPHA][SqrRoot]

fx-9860GII: [ALPHA][EXP]
fx-CG10/20/50: [ALPHA][EXP]


Function
  1. Display string or character(s) between " and ".

Description
  1. <string> (string or charactoer) can be combination of  an alphabet, a charactor, a command, a mathimatical function or any simbol.
  2. After display of <string> by "<string>" code, internal cursor row for input or output moves down to the next row.
  3. UNDOCUMENTED The internal cursor row is reset back to top row after text clear command (Cls on fx-5800P or ClrText on fx-9860GII or fx-CG10/20/50) runs.
  4. When the internal cursor row comes to bottom row [4th row from top (fx-5800P) or 7th row from top (fx-9860GII and fx-CG10/20/50)], the internal cursor row stay at the botom row even "<string>" runs.

Note

UNDOCUMENTED Detailed behavior of the " " output command on fx-9860GII or fx-CG10/20/50 is deferent from on fx-5800P. Following sample code gives deferent result;   
Locate 5,1,"-RIGHT-"
"LEFT"


[fx-5800P] The output result is...

LEFT-RIGHT-

This result tells you that the "LEFT" code over-writes 4 column.

[fx9860GII or fx-CG10/20/50] The output result is...


LEFT

This result tells you that the "LEFT" code over-writes whole row.


Copyright (C) 2013 Krtyski / egadget.blog.fc2.com  All Rights Reserved.

テーマ : プログラム関数電卓
ジャンル : コンピュータ

最新記事
検索フォーム
最新コメント
カテゴリ
C# (3)
Visitors
Online Counter
現在の閲覧者数:
プロフィール

やす (Krtyski)

Author:やす (Krtyski)
since Oct 30, 2013


プログラム電卓は、プログラムを作って、使ってナンボ!

実際に触って気づいたこと、自作プログラム、電卓プログラミングについて書いています。

なお管理人はカシオ計算機の関係者ではなく、Casio Basicが面白いと感じる1ユーザーです。


写真: 「4駆で泥んこ遊び@オックスフォード郊外」

リンク
月別アーカイブ
Sitemap

全ての記事を表示する

ブロとも申請フォーム

この人とブロともになる

QRコード
QR