Table of Contents
CUBLOC
CUBLOC is an industrial embedded computer developed by Comfile Technology. There are two main types. The core module is a semiconductor-type module, which can be inserted into a custom-designed PCB just like an MCU. The MSB series, on the other hand, is designed in a compact PLC-like form that can be directly installed and wired in the field.
CUBLOC can be programmed using both the BASIC language and ladder logic. While it's possible to use just one of them, using both together is more efficient.
Core Modules
| MODEL | CB210 | CB220 | CB320 | CB280 | CB380 | CB290 | CB400 | CB405 | CB405RT |
|---|---|---|---|---|---|---|---|---|---|
| PACKAGE | Arduino style | 24pin DIP | 24pin DIP | 64pin module | 64pin module | 108pin module | 108pin module | 80pin module | 80pin module |
| I/O PORT | 20 | 16 + 6 | 16 + 6 | 49 | 49 | 91 | 83 | 64 | 58 |
| FLASH | 80KB | 80KB | 200KB | 80KB | 200KB | 80KB | 200KB | 200KB | 200KB |
| DATA | 3KB | 3KB | 7KB | 3KB | 7KB | 28KB | 7KB | 110KB | 110KB |
| EEPROM | 4KB | 4KB | 4KB | 4KB | 4KB | 4KB | 4KB | 4KB | 4KB |
| A/D | 6CH 10bit | 8CH 10bit | 8CH 10bit | 8CH 10bit | 8CH 10bit | 8CH 10bit | 16CH 10bit | 16CH 10bit | 8CH 10bit 8CH 16bit |
| PWM | 3CH 16bit | 6CH 10~16bit | 6CH 10~16bit | 6CH 10~16bit | 6CH 10~16bit | 6CH 10~16bit | 12CH 10~16bit | 12CH 10~16bit | 12CH 10~16bit |
| RS232C | 1CH | 1CH | 1CH | 1CH | 1CH | 1CH | 3CH | 3CH | 3CH |
| Pinout | Pinout | Pinout | Pinout | Pinout | Pinout | Pinout | |||
| Buy | Buy | Buy | Buy | Buy | Buy | Buy | Buy | Buy | |
CUBLOC Studio
For an introduction to programming CUBLOC devices with CUBLOC Studio, please refer to the CUBLOC Start Book.
BASIC language
System Library
| -A- | -B- | -C- | -D- | -E- | -F- |
|---|---|---|---|---|---|
| Abs | Bcd2bin | Checkbf | Dcd | Eeread | Fabs |
| Acos | Bclr | Chr | Debug | Eewrite | Float |
| Adin | Beep | Compare | Dec | Ekeypad | Floor |
| Alias | Bfree | Const | Decr | Exp | For...Next |
| Aliason, Aliasoff | Bin2bcd | Const Device | Delay | Fp | |
| Asc | Blen | Cos, Cosh | Dim | Freepin | |
| Asin | Bytein | Count | Do...Loop | Freqout | |
| Atan | Byteout | Countreset | DP | ||
| Dtzero |
| -G- | -H- | -I- | -K- | -L- |
|---|---|---|---|---|
| Get | Hadin | I2cread | Keyin | Left |
| Geta | Hadin2 | I2creadna | Keyinh | Len |
| Geta2 | Heap | I2cstart, I2cstop | Keypad | Log |
| Getcrc | Heapclear | I2cwrite | Log10 | |
| Getpad | Heapw | If..Endif | Low | |
| Getstr | Hex | In | Ltrim | |
| Getstr2 | High | Incr | ||
| Gosub | HP | Input | ||
| Goto | Hread | |||
| Hwrite |
Graphic/Display Library
- CSG Module - Seven Segment Display
- CLCD Module - Character LCD
- GHB3224C - Monochrome Graphics Display
Ladder Logic
Ladder Logic's greatest advantage is that all circuits are laid out in parallel; they are all processed as fast as the ladder scan time will allow. This allows for a more parallel execution path for unrelated functions.
How to use Ladder logic
Low Level Commands
High Level Commands
Additional Information
Application Notes
Cubloc User's Manual PDF file - This is the CUBLOC manual as it existed before publishing the Comfile Documentation Library. It is no longer maintained, but remains here as a historical record.
