ppt Object Pool Pool Edit GUIObject Pool Objectpool
マスクのプラン(ppt など) 本稿での説明 Object Poolエディタ “Pool. Edit” GUIによりObject. Poolを編集 Objectpool. XML(一時保存ファイル) Objectpool_export. XMLパーサ “pooleditparser” Objectpool. h Objectpool. bin XML形式から構文変換(ISO 11783 -6) ライブラリに加筆 ECU開発支援ライブラリ“Agri. Bus. Std. Lib” MPLAB-X等の開発環境 書き込み ECU プラグイン&ロード Virtual Terminal 12 H 11 -B VTに表示するまでの流れ Motobayashi 12 M - 03
ISO 11783 VT (”Comfort Terminal”) Note PC (Windows. Xp) 書込み機 (“PICkit 2”) VT用Adapter (ピン配置変更) ECU DC 12 V (“Naro. Can. Board”) Terminator CAN 供試システム(例)の外観 12 M 04 12 H Motobayashi 12 M - 04
パーサ「pooleditparser」による変換 pooleditparser Pool. Editで作成したXMLファイル 変換後の出力ファイル ■C. 形式での出力 pooleditparser. exe filename_export. xml filename. h –d=400 –sh=80 –sw=120 -table ■bin形式での出力 pooleditparser. exe filename_export. xml filename. bin –d=400 –sh=80 –sw=120 表記 -d -sw -sh -table オプション dimension soft key width soft key height 内容 マスクのサイズ(正方形) ソフトキーのサイズ(幅) ソフトキーのサイズ(高さ) テーブル形式での出力 12 M 11 最後の「おまじない」 Motobayashi 12 M - 11
<. XMLファイルの例> unsigned char *pool = { <? xml version="1. 0" encoding="UTF-8"? ><objectpool dimension="200" fix_bitmap_path="images" sk_height="32" sk_width="60" std_bitmap_path="images"> <workingset background_colour="white" id="256" name="workingset" selectable="yes" use="designator"> <include_object id="258" name="datamask" role="active_mask"/> <container height="200" hidden="no" id="257" name="container 0" pos_x="0" pos_y="0" use="designator" width="200"/> </workingset> <datamask background_colour="187" id="258" name="datamask" use="mask"> <include_object id="275" name="softkeymask" role="soft_key_mask"/> <container height="200" hidden="no" id="259" name="container 0_Speed. Meter 0" pos_x="0" pos_y="0" use="mask" width="200"> <ellipse_type="closed" end_angle="0" height="151" id="260" name="ellipse 0" pos_x="23" pos_y="15" start_angle="0" use="mask" width="151"> <include_object id="280" name="black" role="fill_attributes"/> <lineattributes id="261" line_art="11111111" line_colour="17" line_width="1" name="black 1" role="line_attributes" use="mask"/> unsigned char *pool = { </ellipse> <. hファイルの例> 1, 1, 3, 200, 0, 0, (中略) 0, 1, 0, block_col="0" 1, 1, 2, 1, 1, 0, block_row="0" 0, 1, 1, 0, 0, 0, border_colour="olive" 0, <meter arc_and_tick_colour="30" end_angle="135" id="271" max_value="90" min_value="0" 5, 1, 24, 17, 1, 255, 0, name="basicmeter 1" needle_colour="maroon" number_of_ticks="10" options="clockwise+ticks" pos_x="30" pos_y="21" start_angle="0" use="mask" value="012" 4, 1, 15, 5, 1, 151, 0, 0, 24, 1, 0, width="138"/> 7, 1, 25, 2, 7, 255, 0, </container> 8, 1, 24, 23, 1, 255, 0, horizontal_justification="middle" id="272" language="" length="11" name="label 0" options="transparent" <outputstring background_colour="227" height="12" 6, 1, 15, 8, 1, 141, 0, 141, SPEED" 0, 0, width="196"> 7, 1, 0, pos_x="2" pos_y="168" use="mask" value="WHEEL 9, 1, 16, 0, 8, 0, 1, 21, 1, 1, 255, 1, 1, 0, 48, 0, <include_object id="278" name="black 8 x 12" role="font_attributes"/> 10, 1, 16, 0, 8, 0, 1, 21, 1, 1, 255, 1, 2, 0, 51, 48, 0, </outputstring> 13, 1, 11, 30, 0, 8, 0, 1, 21, 1, 1, 255, 1, 4, 0, 107, 109, 47, 104, 0, </datamask> 3, 1, 3, 200, 0, 0, 9, 0, 4, 1, 23, 0, 15, 0, 6, 1, 28, 0, 20, 0, 9, 1, 91, 0, 136, 0, 1, 44, 0, 87, 0, 11, 1, 91, 0, 37, 0, 12, 1, 136, 0, 87, 0 <softkeymask background_colour="white" id="275" name="softkeymask" use="designator"/> (中略) <lineattributes id="276" line_art="11111111" line_colour="black" line_width="1" name="lineattributes"/> 24, 1, 25, 2, 8, 255, 0 font_style="" font_type="latin 1" id="277" language="" name="black 6 x 9" use="mask"/> <fontattributes font_colour="52" font_size="6 x 8" }; <fontattributes font_colour="maroon" font_size="8 x 12" font_style="" font_type="latin 1" id="278" language="" name="black 8 x 12" use="mask"/> <fontattributes font_colour="52" font_size="12 x 16" font_style="" font_type="latin 1" id="279" language="" name="black 12 x 16" use="mask"/> #define POOL_SIZE 437 <fillattributes fill_colour="grey" fill_type="fillcolour" id="280" name="black" use="mask"/> #define workingset 256 </objectpool> #define datamask 258 #define softkeymask 275 #define lineattributes 276 #define black 6 x 9 277 #define black 280 12 H 13 出力ファイル例 Motobayashi 12 M - 12
ECU用ライブラリ“Agri. Bus. Std. Lib” <Object. Pool記述部分を. hファイルから移植> 12 H 14 12 H “MPLAB-X IDE”の操作画面 Motobayashi 12 M - 13
Virtual Terminal (Comfort Terminal) CAN (作業機バス) 作業機バス用 標準コネクタ ECU (Naro. Can. Board) 12 H 16 12 H Object Poolの表示結果 Motobayashi 12 M - 14
- Slides: 15