API 레퍼런스가이드 Rev. 2.01 http://www.bixolon.co.kr
목차 1. 매뉴얼안내... 3 1-1 지원 Kernel & Platform... 3 1-2 지원인터페이스... 3 1-3 지원프린터... 4 2. Property... 5 2-1 CharacterSet & International CharacterSet(LONG R/W)... 5 2-2 State (LONG R)... 7 3. 메소드... 8 3-1 ConnectToPrinter... 8 3-2 DisconnectPrinter... 9 3-3 InitializePrinter... 10 3-4 FeedOneLabel... 11 3-5 SetSpeed... 12 3-6 SetDensity... 13 3-7 SetOrientation... 14 3-8 SetCutter... 15 3-9 SetBackFeed... 16 3-10 SetPaper... 17 3-11 SetMargin... 18 3-12 SetOffset... 19 3-13 PrintDeviceFont... 20 3-14 PrintDeviceFontW... 22 3-15 PrintVectorFont... 24 3-16 PrintVectorFontW... 26 3-17 Prints... 29 3-18 Print1DBarcode... 30 3-19 PrintMaxiCode... 32 3-20 PrintPDF417... 33 3-21 PrintQRCode... 35 3-22 PrintDataMatrix... 37 3-23 PrintAztec... 38 3-24 PrintCode49... 40 3-25 PrintCODABLOCK... 42 3-26 PrintMicroPDF... 44 3-27 PrintGS1DataBar... 46 3-28 PrintBlock... 48 3-29 PrintCircle... 50 3-30 PrinteBitmap... 51 3-31 DirectIO... 52 3-32 CalibrateMedia... 53 3-33 ResetPrinter... 54 3-34 ClearBuffer... 55 3-35 SetRewinder... 56 Rev. 2.01-2 -
1. 매뉴얼안내 이 SDK 매뉴얼에는 Linux OS 용응용프로그램개발에필요한라이브러리에대한내용이기술되어있습니다. 1-1 지원 Kernel & Platform Kernel - Kernel 2.6.32 이후버전 Platform - Linux 32bit / 64bit - Raspberry PI O/S - opensuse 11.3 32bit / 64bit - Red Hat Enterprise Linux 7.3 64bit - CentOS 6.6 32bit / 64bit - Ubuntu 10.04 LTS 32bit / 64bit 1-2 지원인터페이스 USB, Serial, Parallel, Bluetooth, Ethernet, WLAN Rev. 2.01-3 -
1-3 지원프린터 모델 해상도 최대인쇄너비 지원속도 SLP-D220 203 dpi 432 dots 2.5,3,4,5,6ips SLP-D223 300 dpi 672 dots 2,2.5,3,4ips SLP-DX220 203 dpi 432 dots 3,4,5,6ips SLP-DX223 300 dpi 672 dots 2.5,3,4ips SLP-TX220 203 dpi 432 dots 3,4,5,6ips SLP-TX223 300 dpi 672 dots 2.5,3,4ips SLP-D420 203 dpi 864 dots 2.5,3,4,5,6,7ips SLP-D423 300 dpi 1248 dots 2,2.5,3,4ips SLP-DX420 203 dpi 864 dots 3,4,5,6,7ips SLP-DX423 300 dpi 1248 dots 3,4,5ips SLP-TX420 203 dpi 864 dots 3,4,5,6,7ips SLP-TX423 300 dpi 1248 dots 3,4,5ips SLP-T400 203 dpi 864 dots 2.5,3,4,5,6ips SLP-T403 300 dpi 1248 dots 2,2.5,3,4ips SLP-T400R 203 dpi 864 dots 2.5,3,4,5,6ips SLP-T403R 300 dpi 1248 dots 2,2.5,3,4ips SLP-TX400 203 dpi 864 dots 3,4,5,6,7ips SLP-TX403 300 dpi 1248 dots 3,4,5ips SLP-TX400RFID 203 dpi 864 dots 3,4,5,6,7ips SLP-TX403RFID 300 dpi 1248 dots 3,4,5ips SLP-DL410 203 dpi 864 dots 3,4,5ips SLP-DL413 300 dpi 1248 dots 3,4,5ips SPP-L3000 203 dpi 576 dots 1,2,3,4,5ips SPP-L310 203 dpi 576 dots 1,2,3,4,5ips SPP-L410 203 dpi 832 dots 1,2,3,4ips SRP-770 203 dpi 832 dots 2.5,3,4,5ips SRP-770II 203 dpi 832 dots 2.5,3,4,5ips SRP-770III 203 dpi 832 dots 3,4,5ips SRP-E770III 203 dpi 832 dots 3,4,5ips XT5-40 203 dpi 832 dots 2 ~ 14ips XT5-43 300 dpi 1248 dots 2 ~ 10ips XT5-46 600 dpi 2496 dots 2,3,4,5ips Rev. 2.01-4 -
2. Property 제공하는라이브러리에서사용하는상수값은 BxlLabelConst.h 파일에선언되어있습니다. 개발환경은 C 를기반으로하였습니다. 2-1 CharacterSet & International CharacterSet(LONG R/W) 프린터의코드페이지와 International character Set 을정의하는속성으로기본값은 CS_CP437 와 ICS_USA 으로설정되어있습니다. SetCharacterSet() 함수를사용하여값을설정할수있습니다. 참고 다음의경우에는 CharacterSet 설정을확인이필요할수있습니다. 1. 출력을시도한것과다른문자열이출력될경우 2. 상형문자와같은형태로깨진문자열이출력될경우 3. 문자가? ( 물음표 ) 와같은형태로출력될경우 사용가능한코드페이지는다음과같습니다. CS_CP437 0 U.S.A CS_CP850 1 Latin 1 CS_CP852 2 Latin 2 CS_CP860 3 Portuguese CS_CP863 4 Canadian French CS_CP865 5 Nordic CS_WPC1252 6 Latin I CS_CP865_WCP1252 7 European Combined CS_CP857 8 Turkish CS_CP737 9 Greek CS_WCP1250 10 Latin 2 CS_WCP1253 11 Greek CS_WCP1254 12 Turkish CS_CP855 13 Cyrillic CS_CP862 14 Hebrew CS_CP866 15 Cyrillic CS_WCP1251 16 Cyrillic CS_WCP1255 17 Hebrew CS_CP928 18 Greek CS_CP864 19 Arabic CS_CP775 20 Baltic CS_WCP1257 21 Baltic CS_CP858 22 Latin 1 + Euro Rev. 2.01-5 -
사용가능한 International character Set은다음과같습니다. ICS_USA 0 USA 코드 ICS_FRANCE 1 FRANCE 코드 ICS_GERMANY 2 GERMANY 코드 ICS_UK 3 UK 코드 ICS_DENMARK_I 4 DENMARK1 코드 ICS_SWEDEN 5 SWEDEN 코드 ICS_ITALY 6 ITALY 코드 ICS_SPAIN_I 7 SPAIN 코드 ICS_NORWAY 8 NORWAY 코드 ICS_DENMARK_II 9 DENMARK 2 코드 ICS_JAPAN 10 JAPAN 코드 ICS_SPAIN_II 11 SPAIN 2 코드 ICS_LATIN 12 LATIN 코드 ICS_KOREA 13 KOREA 코드 ICS_SLOVENIA 14 SLOVENIA 코드 ICS_CHINA 15 CHINA 코드 ret = ConnectPrinter ( portinfo ); SetCharacterSet(CS_PC850, ICS_UK);... Rev. 2.01-6 -
2-2 State (LONG R) 프린터상태가설정되는속성입니다. CheckPrinterStatus 함수를호출하여프린터상태를검사하고상태정보를리턴값으로받습니다. 상태값은중복되어설정될수있으며비트연산을통해각각의값을확인할수있습니다. 프린터상태값은다음과같습니다. STS_NORMAL 0 프린터상태가정상 STS_RIBONEND 4 리본엔드에러 STS_GAPERROR 8 갭인식불량 ( 오토센싱실패 ) STS_TPHOVERHEAT 16 TPH 오버히트 STS_CUTTERJAM 32 커터잼 STS_COVEROPEN 64 커버열림 STS_PAPEREMPTY 128 프린터용지가없음 ret = ConnectToPrinter ( portinfo ); int state; state = CheckPrinterStatus(); if ((state & STS_RIBONEND) == STS_RIBONEND) if ((state & STS_GAPERROR) == STS_GAPERROR). Rev. 2.01-7 -
3. 메소드 Linux SDK 에서제공하는함수들은 BxlLabelAPI.h 파일에선언되어있습니다. 개발환경은 C 를기반으로하였습니다. 3-1 ConnectToPrinter 이함수는프린터와통신을위해연결을설정하는함수입니다. int ConnectToPrinter(const char *port) * const char *port [in] 프린터와연결할인터페이스정보 인터페이스 입력정보 예시 USB USB: ConnectToPrinter( USB: ) Serial serial:(baudrate) ConnectToPrinter( serial:115200 ) /dev/ttyx:(baudrate) ConnectToPrinter( /dev/tty0:115200 ) Parallel parallel ConnectToPrinter( parallel ) /dev/lpx ConnectToPrinter( /dev/lp0 ) Bluetooth 장치 MAC address ConnectToPrinter( 7d:f0:7d:e4:e0:78 ) Ethernet, Wifi IP주소, port번호 ConnectToPrinter( 192.168.0.10:9100 ) PORT_OPEN_ERROR -99 포트열기실패 NO_CONNECTED_PRINTER -100 프린터가연결되어있지않음 NO_BIXOLON_PRINTER -101 미지원프린터 // USB ret = ConnectToPrinter( USB: ); // Serial ret = ConnectToPrinter( serial:115200 ); // Parallel ret = ConnectToPrinter( parallel ); // bluetooth ret = ConnectToPrinter( 7d:f0:7d:e4:e0:78 ); // Ethernet or WiFi ret = ConnectToPrinter( 192.168.0.10:9100 ); Rev. 2.01-8 -
3-2 DisconnectPrinter 이함수는프린터와연결을종료합니다. int DisconnectPrinter(); 없음 없음 ConnectToPrinter( portinfo ); DisconnectPrinter(); Rev. 2.01-9 -
3-3 InitializePrinter 이함수는프린터를초기화하는기능을지원합니다. int InitializePrinter(); 없음 InitializePrinter(); Rev. 2.01-10 -
3-4 FeedOneLabel 이함수는한라벨을피딩합니다. int FeedOneLabel (); 없음 ret = FeedOneLabel(); Rev. 2.01-11 -
3-5 SetSpeed 이함수는인쇄속도를설정합니다. int SetSpeed(int speed); * int speed [in] 인쇄속도 SPEED_25 0 2.5 ips SPEED_30 1 3.0 ips SPEED_40 2 4.0 ips SPEED_50 3 5.0 ips SPEED_60 4 6.0 ips SPEED_70 5 7.0 ips SPEED_80 6 8.0 ips SPEED_90 7 9.0 ips SPEED_100 8 10.0 ips SPEED_110 9 11.0 ips SPEED_120 10 12.0 ips SPEED_130 11 13.0 ips SPEED_140 12 14.0 ips SetSpeed(SPEED_60); Rev. 2.01-12 -
3-6 SetDensity 이함수는인쇄농도를설정합니다. int SetDensity(int density); * int density [in] 인쇄농도 (0 ~ 20) SetDensity(20); Rev. 2.01-13 -
3-7 SetOrientation 이함수는인쇄방향을설정합니다. int SetOrientation(int orientation); * int orientation [in] 인쇄방향 TOP_TO_BOTTOM 84 위에서아래로인쇄 BOTTOM_TO_TOP 66 아래에서위로인쇄 SetOrientation(TOP_TO_BOTTOM); Rev. 2.01-14 -
3-8 SetCutter 이함수는커팅옵션을설정합니다. int SetCutter(bool autocut, int cutperiod); * bool autocut [in] 컷팅여부. false : 컷팅안함, true : 컷팅 * int cuttingperiod [in] 컷팅간격 SetCutter(false, 0); Rev. 2.01-15 -
3-9 SetBackFeed 이함수는 back feeding 옵션을설정합니다. int SetBackFeed(bool backfeed); * bool backfeed [in] 인쇄시작전 back-feed 여부. false : back-feed 안함, true : back-feed WRITE_ERROR -300 데이터전송실패 SetBackFeed(false); Rev. 2.01-16 -
3-10 SetPaper 이함수는인쇄할용지에대한옵션을설정합니다. int SetPaper(int width, int height, int mediatype, int offset, int gaplength); * int width [in] 용지너비. 최대 832(4.1 inch) [dot] * int height [in] 용지높이. 최대 2432(12 inch) [dot] * int mediatype [in] 용지타입 코드 값 설 명 MEDIA_GAP 0 Gap 용지 MEDIA_CONTINUOUS 1 연속용지 MEDIA_BLACKMARK 2 Black Mark 용지 * int offset [in] Gap 또는 Blackmark 의옵셋 * int gaplength [in] Gap 길이또는 Blackmark 두께 [dot] SetPaper(832, 1261, MEDIA_GAP, 0, 20); Rev. 2.01-17 -
3-11 SetMargin 이함수는인쇄할용지의여백을설정합니다. int SetMargin(int horizontalmargin, int verticalmargin); * int horizontalmargin [in] 가로마진 [dot] * int verticalmargin [in] 세로마진 [dot] SetMargin(10, 10); Rev. 2.01-18 -
3-12 SetOffset 이함수는 Black Mark/Gap 과절취선간에 offset 길이를설정합니다. int SetOffset(int offset); * int offset [in] offset 길이 [dot] (-100 ~ 100) SetOffset(10); Rev. 2.01-19 -
3-13 PrintDeviceFont 이함수는디바이스폰트를인쇄하는기능을지원합니다. int PrintDeviceFont(const char *text, const int xpos, const int ypos, const int fontname, const int xmulti, const int ymulti, const int rotation, const bool bold); * const char *text [in] 인쇄할문자열 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int fontname [in] 폰트이름 DEVICE_ENG_9X15 0 Size 6 (9 X 15) DEVICE_ENG_12X20 1 Size 8 (12 X 20) DEVICE_ENG_16X25 2 Size 10 (16 X 25) DEVICE_ENG_19X30 3 Size 12 (19 X 30) DEVICE_ENG_24X38 4 Size 15 (24 X 38) DEVICE_ENG_32X50 5 Size 20 (32 X 50) DEVICE_ENG_48X76 6 Size 30 (48 X 76) DEVICE_ENG_22X34 7 Size 14 (22 X 34) DEVICE_ENG_28X44 8 Size 18 (28 X 44) DEVICE_ENG_37X58 9 Size 24 (37 X 58) DEVICE_KOR_16X16 0x61 Size 1 (16 X 16) DEVICE_KOR_24X24 0x62 Size 2 (24 X 24) DEVICE_KOR_20X20 0x63 Size 3 (20 X 20) DEVICE_KOR_26X26 0x64 Size 4 (26 X 26) DEVICE_KOR_20X26 0x65 Size 5 (20 X 26) DEVICE_KOR_38X38 0x66 Size 6 (38 X 38) DEVICE_CHN_GB2312 0x6D GB2312 (24 X 24) DEVICE_CHN_BIG5 0x6E BIG5 (24 X 24) * const int xmulti [in] 수평확대 (1 ~ 4) * const int ymulti [in] 수직확대 (1 ~ 4) Rev. 2.01-20 -
* const int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 * bool bold [in] 굵기. false : 보통, true : 굵게 PrintDeviceFont( BIXOLON LABEL SDK TEST., 20, 10, DEVICE_ENG_24X38, 1, 1, ROTATE_0, false); Prints(1, 1); Rev. 2.01-21 -
3-14 PrintDeviceFontW 이함수는디바이스폰트를인쇄하는기능을지원합니다. int PrintDeviceFontW(const char *text, const int xpos, const int ypos, const int fontname, const int xmulti, const int ymulti, const int rotation, const bool bold, const unsigned codepage); * const char *text [in] 인쇄할문자열 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int fontname [in] 폰트이름 DEVICE_ENG_9X15 0 Size 6 (9 X 15) DEVICE_ENG_12X20 1 Size 8 (12 X 20) DEVICE_ENG_16X25 2 Size 10 (16 X 25) DEVICE_ENG_19X30 3 Size 12 (19 X 30) DEVICE_ENG_24X38 4 Size 15 (24 X 38) DEVICE_ENG_32X50 5 Size 20 (32 X 50) DEVICE_ENG_48X76 6 Size 30 (48 X 76) DEVICE_ENG_22X34 7 Size 14 (22 X 34) DEVICE_ENG_28X44 8 Size 18 (28 X 44) DEVICE_ENG_37X58 9 Size 24 (37 X 58) DEVICE_KOR_16X16 0x61 Size 1 (16 X 16) DEVICE_KOR_24X24 0x62 Size 2 (24 X 24) DEVICE_KOR_20X20 0x63 Size 3 (20 X 20) DEVICE_KOR_26X26 0x64 Size 4 (26 X 26) DEVICE_KOR_20X26 0x65 Size 5 (20 X 26) DEVICE_KOR_38X38 0x66 Size 6 (38 X 38) DEVICE_CHN_GB2312 0x6D GB2312 (24 X 24) DEVICE_CHN_BIG5 0x6E BIG5 (24 X 24) * const int xmulti [in] 수평확대 (1 ~ 4) * const int ymulti [in] 수직확대 (1 ~ 4) Rev. 2.01-22 -
* const int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 * bool bold [in] 굵기. false : 보통, true : 굵게 * const unsigned int codepage [in] 문자열을인코딩방식을설정합니다. CP_EUCKR 0 한국어 (EUC-KR) CP_CP949 1 한국어 (CP949) CP_EUCCN 2 중국어 (EUC-CN) CP_GB18030 3 중국어 (GB18030) CP_BIG5 4 중국어 (BIG5) CP_CP950 5 중국어 (CP950) CP_EUCJP 6 일본어 (EUC-JP) CP_CP932 7 일본어 (CP932) CP_CP874 8 태국어 (CP874) PrintDeviceFont( 빅솔론라벨프린터 SDK 테스트., 20, 10, DEVICE_ENG_24X38, 1, 1, ROTATE_0, false, CP_CP949); Prints(1, 1); Rev. 2.01-23 -
3-15 PrintVectorFont 이함수는벡터폰트를인쇄하는기능을지원합니다. Long PrintVectorFont(const char *text, const int xpos, const int ypos, const int font, const int fontwidth, const int fontheight, const int rightspace, const bool bold, const bool reverse, const bool italic, const int rotation, const int alignment, const int printdirection); * const char *text [in] 인쇄할문자열 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int font [in] 폰트선택 VECTOR_ASCII 0 ASCII (1Byte Code) VECTOR_KS5601 1 KS5601(2Byte Code) VECTOR_BIG5 2 BIG5(2Byte Code) VECTOR_GB2312 3 GB2312(2Byte Code) VECTOR_JIS 4 Shift-JIS(2Byte Code) VECTOR_OCRA 5 OCR-A(1Byte Code) VECTOR_OCRB 6 OCR-B(1Byte Code) * const int fontwidth [in] 폰트폭 [dot] * const int fontheight [in] 폰트높이 [dot] * const int rightspace [in] 오른쪽자간 [dot]. + / - 옵션을사용할수있습니다. * const bool bold [in] 굵기. false : 보통, true : 굵게 * const bool reverse [in] 문자역상. false : 정상, true : 역상 * const bool italic [in] italic 체사용. false : 정상, true : italic 체사용 Rev. 2.01-24 -
* const int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 * const int alignment [in] 텍스트정렬 ALIGNMENT_LEFT 0 왼쪽정렬 ALIGNMENT_CENTER 1 가운데정렬 ALIGNMENT_RIGHT 2 오른쪽정렬 * int printdirection [in] 문자열인쇄방향. LEFT_TO_RIGHT 0 왼쪽에서오른쪽으로인쇄 (ex. BIXOLON) RIGHT_TO_LEFT 1 오른쪽에서왼쪽으로인쇄 (ex. NOLOXIB) PrintVectorFont( VECTOR FONT., 20, 150, VECTOR_ASCII, 10, 10, 3, false, false, false, ROTATE_0, ALIGNMENT_LEFT, LEFT_TO_RIGHT); Prints(1, 1); Rev. 2.01-25 -
3-16 PrintVectorFontW 이함수는벡터폰트를인쇄하는기능을지원합니다. Long PrintVectorFontW(const char *text, const int xpos, const int ypos, const int font, const int fontwidth, const int fontheight, const int rightspace, const bool bold, const bool reverse, const bool italic, const int rotation, const int alignment, const int printdirection, const unsigned int codepage); * const char *text [in] 인쇄할문자열 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int font [in] 폰트선택 VECTOR_ASCII 0 ASCII (1Byte Code) VECTOR_KS5601 1 KS5601(2Byte Code) VECTOR_BIG5 2 BIG5(2Byte Code) VECTOR_GB2312 3 GB2312(2Byte Code) VECTOR_JIS 4 Shift-JIS(2Byte Code) VECTOR_OCRA 5 OCR-A(1Byte Code) VECTOR_OCRB 6 OCR-B(1Byte Code) * const int fontwidth [in] 폰트폭 [dot] * const int fontheight [in] 폰트높이 [dot] * const int rightspace [in] 오른쪽자간 [dot]. + / - 옵션을사용할수있습니다. * const bool bold [in] 굵기. false : 보통, true : 굵게 * const bool reverse [in] 문자역상. false : 정상, true : 역상 * const bool italic [in] italic 체사용. false : 정상, true : italic 체사용 Rev. 2.01-26 -
* const int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 * const int alignment [in] 텍스트정렬 ALIGNMENT_LEFT 0 왼쪽정렬 ALIGNMENT_CENTER 1 가운데정렬 ALIGNMENT_RIGHT 2 오른쪽정렬 * int printdirection [in] 문자열인쇄방향. LEFT_TO_RIGHT 0 왼쪽에서오른쪽으로인쇄 (ex. BIXOLON) RIGHT_TO_LEFT 1 오른쪽에서왼쪽으로인쇄 (ex. NOLOXIB) * const unsigned int codepage [in] 문자열을인코딩방식을설정합니다. CP_EUCKR 0 한국어 (EUC-KR) CP_CP949 1 한국어 (CP949) CP_EUCCN 2 중국어 (EUC-CN) CP_GB18030 3 중국어 (GB18030) CP_BIG5 4 중국어 (BIG5) CP_CP950 5 중국어 (CP950) CP_EUCJP 6 일본어 (EUC-JP) CP_CP932 7 일본어 (CP932) CP_CP874 8 태국어 (CP874) Rev. 2.01-27 -
PrintVectorFontW( 빅솔론라벨프린터 SDK 테스트., 20, 150, VECTOR_ASCII, 10, 10, 3, false, false, false, ROTATE_0, ALIGNMENT_LEFT, LEFT_TO_RIGHT, CP_CP949); Prints(1, 1); Rev. 2.01-28 -
3-17 Prints 이함수는버퍼의내용을인쇄합니다. int Prints(const int nlabelset, const int ncopies); * const int nlabelset [in] 라벨세트수 (1 ~ 65535) * const int ncopies [in] 라벨의복수매수 (1 ~ 65535) Prints(1, 1); Rev. 2.01-29 -
3-18 Print1DBarcode 이함수는 1 차원바코드를인쇄하는기능을지원합니다. int Print1DBarcode(const char *barcodedata, const int xpos, const int ypos, const int barcodetype, const int narrowbarwidth, const int widebarwidth, const int barcodeheight, const int rotation, const int HRI); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int barcodetype [in] 바코드타입을정의합니다. bxlconst.h 에정의되어있습니다. BAR_CODE39 0 Code39 BAR_CODE128 1 Code128 BAR_I2OF5 2 Interleaved 2of5 BAR_CODABAR 3 Codabar BAR_CODE93 4 Code93 BAR_UPCA 5 UPC-A BAR_UPCE 6 UPC-E BAR_EAN13 7 EAN13 BAR_EAN8 8 EAN8 BAR_EAN128 9 UCC/EAN128 BAR_CODE11 10 Code11 BAR_PLANET 11 Planet BAR_INDUSTRIAL2OF5 12 Industrial 2of5 BAR_STANDARD2OF5 13 Standard 2of5 BAR_LOGMARS 14 logmars BAR_EXTENSION 15 UPC/EAN Extensions BAR_POSTNET 16 Postnet * int narrowbarwidth [in] 좁은바의너비를설정하는값으로 Dot 단위를가지고있습니다. * int widebarwidth [in] 넓은바의너비를설정하는값으로 Dot 단위를가지고있습니다. * int barcodeheight [in] 바코드의높이를설정하는값으로 Dot 단위를가지고있습니다. Rev. 2.01-30 -
* int rotation [in] 회전값을설정합니다. BXL_ROTATE_0 0 0도회전 BXL_ROTATE_90 1 90도회전 BXL_ROTATE_180 2 180도회전 BXL_ROTATE_270 3 270도회전 * int HRI [in] HRI 출력위치와크기를설정하는값으로 0 ~ 8 까지의값을가집니다. Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_CODE39, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_CODE128, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_I2OF5, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_CODABAR, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_CODE93, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_UPCA, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_UPCE, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_EAN13, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_EAN8, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Print1DBarcode( 123456789012, 220, 60, BXL_1DBAR_EAN128, 2, 5, 100, BXL_ROTATE_90, 1); Prints(1, 1); Rev. 2.01-31 -
3-19 PrintMaxiCode 이함수는 2 차원바코드 (Maxicode) 를인쇄하는기능을지원합니다. int PrintMaxiCode(const char *barcodedata, const int xpos, const int ypos, const int mode); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int mode [in] Maxicode 모드 MAXICODE_MODE0 0 모드 0 MAXICODE_MODE90 2 모드 2 MAXICODE_MODE180 3 모드 3 MAXICODE_MODE270 4 모드 4 PrintMaxiCode( 990,840,06840,THIS IS A TEST OF MODE 0 BIXOLON LABEL PRINTER, 30, 100, MAXICODE_MODE0); Prints(1, 1); Rev. 2.01-32 -
3-20 PrintPDF417 이함수는 2 차원바코드 (PDF417) 를인쇄하는기능을지원합니다. int PrintBarcode(const char *barcodedata, const int xpos, const int ypos, const int verticalcount, const int horizontalcount, int errorlevel, int datacomp, bool HRI, int startposition, int modulewidth, int barheight, int rotation); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * int verticalcount [in] 최대가로 count : 3 ~ 90 * int horizontalcount [in] 최대세로 count : 1 ~ 30 * int errorlevel [in] 에러교정레벨. bxlconst.h 에정의되어있습니다. PDF417_ECL0 0 EC 레벨 : 0. EC Codeword : 2 PDF417_ECL1 1 EC 레벨 : 1. EC Codeword : 4 PDF417_ECL2 2 EC 레벨 : 2. EC Codeword : 8 PDF417_ECL3 3 EC 레벨 : 3. EC Codeword : 16 PDF417_ECL4 4 EC 레벨 : 4. EC Codeword : 32 PDF417_ECL5 5 EC 레벨 : 5. EC Codeword : 64 PDF417_ECL6 6 EC 레벨 : 6. EC Codeword : 128 PDF417_ECL7 7 EC 레벨 : 7. EC Codeword : 256 PDF417_ECL8 8 EC 레벨 : 8. EC Codeword : 512 * int datacomp [in] 데이터압축방법. bxllabelconst.h 에정의되어있습니다. PDF417_COMP_TEXT 0 2 Characters per codeword. PDF417_COMP_NUM 1 2.93 Characters per codeword. PDF417_COMP_BINARY 2 1.2 Bytes per codeword. Rev. 2.01-33 -
* bool HRI [in] HRI 출력여부를설정 * int startposition [in] 0 이면바코드의가운데가시작지점이되고 1 이면바코드의좌측상단이시작지정이됩니다. * int modulewidth [in] 모듈의폭을설정 (2 ~ 9). * int barheight [in] 바의높이를설정 (4 ~ 99). * int rotation [in] 회전값을설정 ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 PrintPDF417( BIXOLON Label Printer, This is Test Printing., 30, 100, 30, 5, PDF417_ECL0, PDF417_COMP_TEXT, true, 1, 3, 10, ROTATE_0); Prints(1, 1); Rev. 2.01-34 -
3-21 PrintQRCode 이함수는 2 차원바코드 (QR Code) 를인쇄하는기능을지원합니다. int PrintQRCode(const char *barcodedata, const int xpos, const int ypos, int model, const int ecclevel, int barsize, int rotation); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * int model [in] 모델선택. 1: 모델 1, 2: 모델 2 * int ecclevel [in] ECC 레벨 QRCODE_ECC7 0 복구비율 7% QRCODE_ECC15 1 복구비율 15% QRCODE_ECC25 2 복구비율 25% QRCODE_ECC30 3 복구비율 30% * int barsize [in] 바코드크기설정 (1 ~ 4). * int rotation [in] 회전값을설정 ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 Rev. 2.01-35 -
PrintQRCode( ABCDEFGHIJKLMN1234567890, 30, 100, 1, QRCODE_ECC7, 4, ROTATE_0); Prints(1, 1); Rev. 2.01-36 -
3-22 PrintDataMatrix 이함수는 2 차원바코드 (Data Matrix) 를인쇄하는기능을지원합니다. int PrintDataMatrix(const char *barcodedata, const int xpos, const int ypos, int barsize, bool reverse, int rotation); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * int barsize [in] 바코드크기설정 (1 ~ 4) * bool reverse [in] 바코드역상. false : 정상이미지, true : 역상이미지 * int rotation [in] 회전값을설정 ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 PrintDataMatrix( BIXOLON Label Printer, 30, 100, 4, false, ROTATE_0); Prints(1, 1); Rev. 2.01-37 -
3-23 PrintAztec 이함수는 2 차원바코드 (Aztec) 를인쇄하는기능을지원합니다. int PrintAztec(const char *barcodedata, const int xpos, const int ypos, int barsize, int interpretation, int errcodensymbolsize, bool menusymbol, int numofsymbol, int optid, int rotation); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * int barsize [in] 바코드크기설정 (1 ~ 10). * int interpretation [in] ECI(Extended Channel Interpretation) 코드설정. 0 : 해제, 1 : 설정. * int errcodensymbolsize [in] 에러코드와심볼사이즈 / 타입 * bool menusymbol [in] 메뉴심볼 값 설 명 0 디폴트 error collection 레벨 1 ~ 99 error collection 퍼센트 101 ~ 104 1 ~ 4 레이어컴팩트심볼 201 ~ 232 1 ~ 32 레이어 full range 심볼 300 심플 Aztec Rune * bool numofsymbol [in] Number of symbols for structured append (1 ~ 26) * int optid [in] Optional ID filed for structured append : ID field string ( 최대 24 글자 ) Rev. 2.01-38 -
* int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 PrintAztec( THIS IS AZTEC BARCODE TESTTHIS IS AZTEC BARCODE TEST, 30, 100, 5, 0, 0, true, 1, 1, ROTATE_0); Prints(1, 1); Rev. 2.01-39 -
3-24 PrintCode49 이함수는 2 차원바코드 (Code49) 를인쇄하는기능을지원합니다. int PrintCode49(const char *barcodedata, const int xpos, const int ypos, const int narrowwidth, const int widewidth, const int barheight, int HRI, int startingmode, int rotation); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int narrowwidth [in] 좁은바의폭 [dot] * const int widewidth [in] 넓은바의폭 [dot] * const int barheight [in] 바코드높이 [dot] * int HRI [in] HRI 출력. 0 : 인쇄없음, 1 : 바코드아래, 2 : 바코드위 * int startingmode [in] starting mode 값 설 명 0 Regular Alphanumeric Mode 1 Multiple Read Alphanumeric 2 Regular Numeric Mode 3 Group Alphanumeric Mode 4 Regular Alphanumeric Shift 1 5 Regular Alphanumeric Shift 2 7 Automatic Mode Rev. 2.01-40 -
* int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 PrintCode49( 12345ABC, 30, 100, 2, 7, 22, 2, 7, ROTATE_0); Prints(1, 1); Rev. 2.01-41 -
3-25 PrintCODABLOCK 이함수는 2 차원바코드 (CODABLOCK) 를인쇄하는기능을지원합니다. int PrintCODABLOCK(const char *barcodedata, const int xpos, const int ypos, const int narrowwidth, const int widewidth, const int barheight, const bool security, int datacolumns, int mode, int encoderow); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const int narrowwidth [in] 좁은바의폭 [dot] * const int widewidth [in] 넓은바의폭 [dot] * const int barheight [in] 바코드높이 [dot] * const bool security [in] 보안기능 * int datacolumns [in] 라인당글자수 (2 ~ 62) * int mode [in] 모드 CODABLOCK_A 0 Code 39 문자집합사용 CODABLOCK_E 1 Code 128 문자집합사용 CODABLOCK_F 2 Code 128 문자집합과 Function 1 (FNC1) 자동추가 * int encoderow [in] 인코드할라인수 값 설 명 A 1 ~ 18 E 2 ~ 4 F 2 ~ 4 Rev. 2.01-42 -
PrintCODABLOCK( BIXOLON BARCODE TEST 123BIXOLON BARCODE TEST 123, 30, 100, 2, 5, 30, false, 30, CODABLOCK_E, 4); Prints(1, 1); Rev. 2.01-43 -
3-26 PrintMicroPDF 이함수는 2 차원바코드 (Micro-PDF417) 를인쇄하는기능을지원합니다. int PrintMicroPDF(const char *barcodedata, const int xpos, const int ypos, int modulewidth, int barheight, int mode, int rotation); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * int modulewidth [in] 모듈폭 (2 ~ 8) * int barheight [in] 바코드높이 (1 ~ 99) [dot] * int mode [in] 모드 (0 ~ 33), 세부내용은커맨드매뉴얼참조 * int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 Rev. 2.01-44 -
PrintMicroPDF( ABCDEFGHIJKLMN1234567890, 30, 100, 2, 6, 8, ROTATE_0); Prints(1, 1); Rev. 2.01-45 -
3-27 PrintGS1DataBar 이함수는 GS1 DataBar 바코드를인쇄하는기능을지원합니다. Long PrintGS1DataBar(const char *barcodedata, const int xpos, const int ypos, int barcodetype, int expand, int separatorheight, int barheight, int segmentwidth, int rotation); * const char *barcodedata [in] 바코드출력데이터 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * int barcodetype [in] 바코드타입 GS1DATABAR 0 GS1 DataBar GS1DATABAR_TRUNCATED 1 GS1 DataBar Truncated GS1DATABAR_STACKED 2 GS1 DataBar Stacked GS1DATABAR_STACKED_OMNIDIRECTIONAL 3 GS1 DataBar Stacked Omnidirectional GS1DATABAR_LIMITED 4 GS1 Limited GS1DATABAR_EXPANDED 5 GS1 Expanded * int expand [in] 확대 (1 ~ 10) * int separatorheight [in] Separator 높이 (1 ~ 2) * int barheight [in] barcode 높이 * int segmentwidth [in] segment 너비 (0 ~ 22. 짝수만가능 ) Rev. 2.01-46 -
* int rotation [in] 회전값을설정합니다. ROTATE_0 0 0도회전 ROTATE_90 1 90도회전 ROTATE_180 2 180도회전 ROTATE_270 3 270도회전 PrintGS1DataBar( 0102005190000570031512291036310300050091320000050304, 30, 100, GS1DATABAR_EXPANDED, 2, 2, 17, 10, ROTATE_0); Prints(1, 1); Rev. 2.01-47 -
3-28 PrintBlock 이함수는라인, 블록, 박스및사선을인쇄하는기능을지원합니다. int PrintBlock(const int xstart, const int ystart, const int xend, const int yend, const int option, const int thickness); * const int xstart [in] 가로시작좌표 [dot] * const int ystart [in] 세로시작좌표 [dot] * const int xend [in] 가로끝좌표 [dot] * const int yend [in] 세로끝좌표 [dot] * const int option [in] 모드 (0 ~ 33), 세부내용은커맨드매뉴얼참조 BLOCK_OVERWRITE 0 라인 Overwriting BLOCK_EXCLUSIVEOR 1 라인 Exclusive OR BLOCK_DELETE 2 라인삭제 BLOCK_SLOPE 3 사선 BLOCK_BOX 4 박스 * int thickness [in] 선굵기. 사선또는박스일경우에만적용 Rev. 2.01-48 -
PrintBlock(20, 20, 300, 300, BLOCK_BOX, 10); PrintBlock(400, 20, 20, 500, BLOCK_SLOPE, 10); Prints(1, 1); Rev. 2.01-49 -
3-29 PrintCircle 이함수는원을인쇄하는기능을지원합니다. int PrintCircle(const int xpos, const int ypos, int size, int multi); * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * int size [in] 원의크기 (1 ~ 6) * int multi [in] 확대 (1 ~ 4) PrintCircle(150, 150, 4, 1); Prints(1, 1); Rev. 2.01-50 -
3-30 PrinteBitmap 이함수는이미지파일 (bmp, jpg, gif) 을선택하여인쇄하는기능을지원합니다. int PrintBitmap (const char *imagepath, const int xpos, const int ypos, const bool compress); * const char *imagepath [in] 이미지파일경로 * const int xpos [in] 수평포지션 (X) [dot] * const int ypos [in] 수직포지션 (Y) [dot] * const bool compress [in] 압축여부 IMAGE_OPEN_ERROR -118 이미지파일열수없음 MEM_ALLOC_ERROR -120 내부메모리할당실패 char *imgpath =. ; PrintBitmap(imgPath, 150, 150, false); Prints(1, 1); Rev. 2.01-51 -
3-31 DirectIO 이함수는 SLCS 명령어를직접전송하고응답을읽어올수있습니다. int DirectIO(const char *writedata, const wirtelen, char *readdata, int *readlen); * const char *writedata [in] 전송할데이터 * const int writelen [in] 전송할데이터길이 * char *readdata [in] 데이터를읽어올버퍼 * int *readlen [in] 읽어들일길이를전달하고읽어들인길이를받음 READ_ERROR -106 데이터수신실패 char cmd = T20,20,3,1,1,0,0,N,N,\'BIXOLON Label Printer\' ; DirectIO(cmd, strlen(cmd), NULL, 0); Rev. 2.01-52 -
3-32 CalibrateMedia 이함수는오토칼리브레이션기능을지원합니다. int CalibrateMedia(); 없음 CalibrateMedia(); Rev. 2.01-53 -
3-33 ResetPrinter 이함수는프린터를리부팅하는기능을지원합니다. int ResetPrinter(); 없음 ResetPrinter(); Rev. 2.01-54 -
3-34 ClearBuffer 이함수는프린터의이미지버퍼에있는데이터를삭제합니다. int ClearBuffer(); 없음 ClearBuffer(); Rev. 2.01-55 -
3-35 SetRewinder 이함수는프린터의 Rewinder 의사용여부를설정합니다. int SetRewinder(bool rewind); * bool rewind [in] Rewinder 사용여부 (true : 사용 / false : 미사용 ) SetRewinder(true); Rev. 2.01-56 -
저작권 BIXOLON Co., Ltd. 모든권한을소유합니다. 이사용설명서와제품에사용된저작물은저작권법에의해보호되어있습니다. ( 주 ) 빅솔론의사전서면동의없이사용설명서및제품에사용된저작물에대한일부또는전체를무단으로복제, 저장, 전송하는것을금합니다. 제공된정보는본제품에만해당되며다른제품에대해서는적용되지않습니다. 또한본정보사용으로인해발생하는직 / 간접적손해에대해책임지지않습니다. 빅솔론로고는 ( 주 ) 빅솔론의등록상표입니다. 모든다른상표또는제품이름은해당하는회사또는조직의상표입니다. ( 주 ) 빅솔론은제품의기능과품질향상을위하여지속적인개선을하고있습니다. 이로인하여제품의사양과매뉴얼의내용은사전통보없이변경될수있습니다. 사용시주의사항 프린터와같은전자제품은정전기에의해쉽게훼손될수있습니다. 정전기로부터프린터를보호하기위해서는프린터후면부에케이블을연결하거나제거하기전에반드시프린터전원을끄십시오. 만약프린터가정전기로부터손상을입었을경우에는가까운구입처에문의하십시오. Rev. 2.01-57 -
개정이력 Rev. 날짜 페이지 설명 2.00 18.05.23 - 신규제작 2.01 19.01.08 3,4 1. 지원 OS 추가 2. SPP-L310, SPP-L410 추가 Rev. 2.01-58 -