android - esc 打印机剪切命令全切和半切有什么区别?
问题描述
我的热敏打印机在两种情况下都以相同的方式切割。有人能解释一下什么是全切,什么是半切以及它的代码
解决方案
ESC/POS
参考手册在页面上说的是9
:
功能 A GS V m
,:
0, 48 Executes a full cut (cuts the paper completely).
1, 49 Executes a partial cut (one point left uncut).
功能 B GS V m n
,:
65 feeds paper to (cutting position + n + vertical motion unit)
and executes a full cut (cuts the paper completely).
66 feeds paper to (cutting position + n + vertical motion unit)
and executes a partial cut (one point left uncut).
纸张被完全或部分切割...取决于打印机型号。
对于打印机型号“我的热敏打印机”,无法确定该打印机是否甚至支持部分切割(阅读建议的操作手册)。
推荐阅读
- ios - 奇怪的 UITextView 行为(快照异常)
- java - 为什么当我实现 android.gms:play-services-ads:19.3.0 时我的 android 应用程序崩溃
- javascript - Redux - 动作被调度,但不适用于减速器
- project-reactor - 使用 Reactor Netty HTTP 客户端时如何获取 HTTP 响应正文和状态
- jquery - jquery 的目标是一个带有符号的类,我怎样才能开始工作?
- laravel - 如何在 Laravel 7 中将正文请求作为字符串发送?
- java - 找不到显示 HTTP 404 错误的网页
- r - 使用 R,如何将连续值与项目 NA 的数据帧分开并计算仅变量 Y 的平均值?
- git - 有没有办法进行 PR 但在我的 github 帐户中将 repo 设为私有?
- python - 当我尝试运行我的 pygame 脚本时,我遇到了问题