# IBM 3270

**IBM 3270** 是 IBM 于 1971 年 5 月宣布的一系列显示终端、打印机和控制单元，以及它们共用的面向缓冲区的数据流，用于配合 System/360 和 System/370 大型机进行在线事务处理<sup>[1](https://bitsavers.computerhistory.org/pdf/charlesRiverAssoc/US_vs_IBM_Exhibit_14971_part_3_Jul80.pdf)</sup>。这是自 1965 年的 IBM 2260 以来，IBM 首次重大 CRT 显示终端发布；其数据流和块模式行为至今仍是交互式用户访问 z/OS 大型机应用的标准方式——几乎总是通过终端仿真器而非原始硬件实现<sup>[1](https://bitsavers.computerhistory.org/pdf/charlesRiverAssoc/US_vs_IBM_Exhibit_14971_part_3_Jul80.pdf)</sup><sup> • </sup><sup>[2](https://www.ibm.com/docs/en/zos-basic-skills?topic=enhanced-introduction-3270-terminal)</sup>。

| 关键事实 | 详情 |
|---|---|
| 发布时间 | 1971 年 5 月，作为包含显示器、打印机和控制器的终端子系统系列发布<sup>[1](https://bitsavers.computerhistory.org/pdf/charlesRiverAssoc/US_vs_IBM_Exhibit_14971_part_3_Jul80.pdf)</sup> |
| 原始屏幕 | 供 2260 迁移使用的 40×12 显示格式，以及 80×24（1,920 字符）；后续型号增加了 80×32、80×43 和 132×27<sup>[3](https://www.righto.com/2019/11/ibm-sonic-delay-lines-and-history-of.html)</sup> |
| 操作模式 | 块模式：击键在本地缓冲，按下注意键时整屏（或变更字段）被传输<sup>[4](https://www.rfc-editor.org/info/rfc1576/)</sup> |
| 字符集 | EBCDIC 而非 ASCII<sup>[4](https://www.rfc-editor.org/info/rfc1576/)</sup> |
| 连接方式 | 非可编程终端通过同轴电缆连接到控制单元（3274，后来是 3174）；每台 3174 最多连接 64 台终端<sup>[2](https://www.ibm.com/docs/en/zos-basic-skills?topic=enhanced-introduction-3270-terminal)</sup> |
| 现代传输 | TN3270/TN3270E 通过 Telnet 承载 3270 数据流；TN3270E 定义于 RFC 2355<sup>[5](https://www.ibm.com/docs/en/zos-basic-skills?topic=tn3270e-telnet-protocol-sna-meet)</sup> |

## 起源与硬件系列

IBM 于 1971 年 5 月推出 3270，作为新的终端子系统系列，包括终端显示器、打印机以及将它们连接到主机的控制器<sup>[1](https://bitsavers.computerhistory.org/pdf/charlesRiverAssoc/US_vs_IBM_Exhibit_14971_part_3_Jul80.pdf)</sup>。在内部，该项目被称为 ANR，是对早期 IBM 2260 显示系统所面临的来自独立终端制造商竞争的行动计划响应<sup>[6](https://www.bitsavers.org/magazines/Datamation/197406.pdf)</sup>。1971 年的版本支持 40×12 显示器，以提供从 2260 迁移的路径，同时推出了成为标准的更大的 80×24 格式<sup>[3](https://www.righto.com/2019/11/ibm-sonic-delay-lines-and-history-of.html)</sup>。

3270 终端本身是一台非可编程的纯文本工作站，即带键盘的显示屏，通常通过同轴电缆连接到控制单元。这些控制单元的设备类型——直到 IP 网络取代 SNA 之前——是 3174，它最多支持 64 台连接的终端，还支持打印机，并在其生命后期支持以太网 LAN 连接<sup>[2](https://www.ibm.com/docs/en/zos-basic-skills?topic=enhanced-introduction-3270-terminal)</sup>。早期的显示站包括 3275（带集成控制单元的独立单元）和集群式的 3277；3276 将控制单元和显示站合为一体，3278 和 3279 作为后续显示站推出<sup>[7](https://www.ibm.com/docs/en/ims/15.5.0?topic=ims-terminal-display-size)</sup><sup> • </sup><sup>[8](https://www.ibm.com/docs/en/gddm?topic=gddm-3270-terminals)</sup>。多年来，IBM 增加了彩色和图形终端、小写字母支持以及更大的屏幕尺寸<sup>[3](https://www.righto.com/2019/11/ibm-sonic-delay-lines-and-history-of.html)</sup>。

## 屏幕尺寸与型号

显示容量因型号而异，从 480 到 3,564 字符不等<sup>[7](https://www.ibm.com/docs/en/ims/15.5.0?topic=ims-terminal-display-size)</sup>。3275 和 3277 显示 480 字符（1 型）或 1,920 字符（2 型）。3276 和 3278 提供 480 或 960 字符（1 型）、1,920（2 型）、1,920 或 2,560（3 型）、1,920 或 3,440（4 型）以及 3,564（5 型）。3279 彩色显示站有 4 色和 7 色版本，显示容量为 1,920 或 2,560 字符<sup>[7](https://www.ibm.com/docs/en/ims/15.5.0?topic=ims-terminal-display-size)</sup>。

在终端类型命名中，型号数字对应备用屏幕尺寸：2 型为 24×80（标准尺寸），3 型为 32×80，4 型为 43×80，5 型为 27×132<sup>[4](https://www.rfc-editor.org/info/rfc1576/)</sup><sup> • </sup><sup>[9](https://3270web.3270.io/terminal-model-limits/)</sup>。在 3270 各型号中，AS/400 或 IBM i 主机原生只识别 24×80 的 2 型<sup>[9](https://3270web.3270.io/terminal-model-limits/)</sup>。

## 3270 数据流

与 3270 设备的通信通过其字符缓冲区进行，这是一种硬件存储机制，其中每个屏幕位置对应一个缓冲区位置；缓冲区内容驱动显示器或打印机机构<sup>[10](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-buffer)</sup>。因此数据流是面向缓冲区的：主机发送命令来格式化表示空间，可在任何时候更改任何位置<sup>[11](https://www.ibm.com/docs/en/personal-communications/14.0.0?topic=support-3270-data-stream)</sup>。

基本输出流由一个字节的写命令、一个字节的写控制字符（WCC）和可变显示数据组成<sup>[12](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-output-datastream)</sup>。命令包括 W（写）、EW（擦除/写）、EWA（擦除/写备用）、RB（读缓冲区）、RM（读修改）、RMA（读全部修改）、EAU（擦除所有未保护）和 WSF（写结构化字段）<sup>[11](https://www.ibm.com/docs/en/personal-communications/14.0.0?topic=support-3270-data-stream)</sup>。在写操作中，命令控制缓冲区：SBA（设置缓冲区地址）定位缓冲区光标，SF 和 SFE 开始一个字段，IC 插入光标，PT 执行程序制表，RA 将数据重复到某地址，EUA 擦除未保护区域到某地址，SA 和 MF 设置或修改属性<sup>[11](https://www.ibm.com/docs/en/personal-communications/14.0.0?topic=support-3270-data-stream)</sup>。

**寻址。** SBA 命令后跟两字节地址。地址有三种形式：12 位、14 位和 16 位。每种方案按顺序编号缓冲区位置，但由于 12 位和 14 位形式留有一些地址位未使用，所得的编码值并非连续。在 80 列屏幕上，位置 112（X'70'）是第 2 行第 33 列<sup>[13](https://www.ibm.com/docs/en/cics-ts/5.6?topic=stream-set-buffer-address-order)</sup>。

## 字段与属性

3270 屏幕上的所有位置都受字段属性支配。字段属性字节占据字段的第一个字符位置，标记字段的开始，不可用于显示数据（显示为空白）<sup>[10](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-buffer)</sup><sup> • </sup><sup>[14](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-3270-display-fields)</sup>。它包含三个特征：

- **保护**，用两位表示：未保护（操作员可键入数据）、仅数字、保护（键入尝试会锁定键盘）和自动跳过（光标跳过该字段）<sup>[15](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-field-attributes)</sup>。
- **修改**，即单比特修改数据标签（MDT）。每当操作员更改字段时，硬件将其置位；在“读修改”操作中，只有 MDT 置位的字段被传输，这使入站流量保持较小<sup>[15](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-field-attributes)</sup><sup> • </sup><sup>[16](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-reading-from-3270-terminal)</sup>。
- **显示亮度**，用两位表示：正常、高亮或不显示（数据保留在缓冲区中但不显示，经典的密码字段）。在具有相关硬件功能的终端上，同样的位还控制光笔可检测性和光标可选择性<sup>[15](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-field-attributes)</sup>。

某些终端还支持基本颜色，其中保护和亮度位组合以在四种颜色（白、红、蓝、绿）中选择，同时保留其保护功能<sup>[15](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-field-attributes)</sup>。扩展字段属性由 SFE、SA 和 MF 命令承载，为字段和单个字符增加前景色和背景色、高亮及类似特征<sup>[11](https://www.ibm.com/docs/en/personal-communications/14.0.0?topic=support-3270-data-stream)</sup><sup> • </sup><sup>[17](https://www.ibm.com/docs/en/zos-basic-skills?topic=terminal-3270-data-stream)</sup>。

## 块模式输入

3270 是块模式设备：用户在终端上键入，然后按下一个特殊键（注意标识符，即 AID 键，如 Enter 或 PF 键）以启动缓冲字符向主机的传输<sup>[18](https://www.ibm.com/docs/en/aix/7.2.0?topic=library-understanding-terminals-curses)</sup>。入站数据以三字节读头开始：一个字节的注意标识符，指明引起传输的按键，以及两字节的光标地址<sup>[16](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-reading-from-3270-terminal)</sup>。“读缓冲区”返回整个缓冲区；“读修改”——应用程序通常使用的命令——只返回 MDT 置位的字段，并且只传输非空字符，因此未填满其字段的输入只发送已键入的字符<sup>[16](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-reading-from-3270-terminal)</sup><sup> • </sup><sup>[19](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-inbound-field-format)</sup>。

## 打印机

任何能够接收 3270 数据流的打印机都算作 3270 打印机；它充当 3270 显示器的打印对应物，其页缓冲区扮演显示器缓冲区的角色。打印数据的格式化方式如同要显示在屏幕上一样，用于显示器的相同缓冲区控制命令（如 SBA 和 SF）定位和格式化输出；格式化后，“开始打印”命令打印表示空间<sup>[20](https://www.ibm.com/docs/en/cics-ts/5.6?topic=files-cics-3270-printers)</sup><sup> • </sup><sup>[11](https://www.ibm.com/docs/en/personal-communications/14.0.0?topic=support-3270-data-stream)</sup>。

## TN3270 与当前使用

由于企业网络迁移到 IP 时存在大量 SNA 和 3270 应用，用于通过 TCP/IP 承载 3270 流量的技术是 TN3270，即 Telnet 3270 的缩写<sup>[2](https://www.ibm.com/docs/en/zos-basic-skills?topic=enhanced-introduction-3270-terminal)</sup>。3270 数据流只是 Telnet 数据载荷的一部分，实现在 Telnet 协议之上<sup>[5](https://www.ibm.com/docs/en/zos-basic-skills?topic=tn3270e-telnet-protocol-sna-meet)</sup>。TN3270 使用三个现有的 Telnet 选项：二进制传输（0）、终端类型（24）和记录结束（25），未定义新选项；EOR 选项分隔不携带长度信息的 3270 命令，而二进制选项是必需的，因为 3270 数据可能包含 IAC 字符<sup>[4](https://www.rfc-editor.org/info/rfc1576/)</sup>。RFC 1576 于 1994 年 1 月记录了这些事实上的做法，RFC 1647 首次正式化了 TN3270E，增加了 LU 名称选择以及对 SYSREQ 和 ATTN 键的完整支持；定义于 RFC 2355 的 TN3270E 是当今与大型机通信的标准 IP 方法<sup>[4](https://www.rfc-editor.org/info/rfc1576/)</sup><sup> • </sup><sup>[5](https://www.ibm.com/docs/en/zos-basic-skills?topic=tn3270e-telnet-protocol-sna-meet)</sup>。

在实践中，开发者和用户现在通过运行在个人计算机上的 3270 终端仿真器而非实际的 3270 终端来访问 z/OS，仿真器可以增加多会话和文件传输等功能<sup>[21](https://www.ibm.com/docs/en/zos-basic-skills?topic=mainframe-interfaces-zos-application-programmers)</sup>。使用该数据流的 3278 和 3279 显示站还可以在 GDDM 等产品下支持复合文档、字母数字、图形和图像<sup>[8](https://www.ibm.com/docs/en/gddm?topic=gddm-3270-terminals)</sup>。

## References

1. [Historical narrative, US v. IBM Exhibit 14971 part 3 (July 1980), bitsavers](https://bitsavers.computerhistory.org/pdf/charlesRiverAssoc/US_vs_IBM_Exhibit_14971_part_3_Jul80.pdf)
2. [Introduction to the 3270 terminal, IBM z/OS Basic Skills](https://www.ibm.com/docs/en/zos-basic-skills?topic=enhanced-introduction-3270-terminal)
3. [IBM, sonic delay lines, and the history of the 80×24 display, righto.com (Ken Shirriff)](https://www.righto.com/2019/11/ibm-sonic-delay-lines-and-history-of.html)
4. [RFC 1576: TN3270 Current Practices, RFC Editor](https://www.rfc-editor.org/info/rfc1576/)
5. [Telnet protocol and SNA meet, IBM z/OS Basic Skills](https://www.ibm.com/docs/en/zos-basic-skills?topic=tn3270e-telnet-protocol-sna-meet)
6. [IBM's Strategy, Datamation, June 1974, bitsavers](https://www.bitsavers.org/magazines/Datamation/197406.pdf)
7. [Terminal display size, IBM IMS 15.5 documentation](https://www.ibm.com/docs/en/ims/15.5.0?topic=ims-terminal-display-size)
8. [3270 terminals, IBM GDDM V3R2 System Customization and Administration](https://www.ibm.com/docs/en/gddm?topic=gddm-3270-terminals)
9. [Screen Size and Model Guide, 3270Web](https://3270web.3270.io/terminal-model-limits/)
10. [The 3270 buffer, IBM CICS TS 5.6 documentation](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-buffer)
11. [3270 Data Stream, IBM Personal Communications 14.0 documentation](https://www.ibm.com/docs/en/personal-communications/14.0.0?topic=support-3270-data-stream)
12. [The output datastream, IBM CICS TS 6.x documentation](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-output-datastream)
13. [The set buffer address order, IBM CICS TS 5.6 documentation](https://www.ibm.com/docs/en/cics-ts/5.6?topic=stream-set-buffer-address-order)
14. [3270 display fields, IBM CICS TS 6.x documentation](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-3270-display-fields)
15. [3270 field attributes, IBM CICS TS 5.6 documentation](https://www.ibm.com/docs/en/cics-ts/5.6.0?topic=terminals-3270-field-attributes)
16. [Reading from a 3270 terminal, IBM CICS TS 6.x documentation](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-reading-from-3270-terminal)
17. [3270 data stream, IBM z/OS Basic Skills](https://www.ibm.com/docs/en/zos-basic-skills?topic=terminal-3270-data-stream)
18. [Understanding terminals with curses, IBM AIX 7.2 documentation](https://www.ibm.com/docs/en/aix/7.2.0?topic=library-understanding-terminals-curses)
19. [Inbound field format, IBM CICS TS 6.x documentation](https://www.ibm.com/docs/en/cics-ts/6.x?topic=terminals-inbound-field-format)
20. [CICS 3270 printers, IBM CICS TS 5.6 documentation](https://www.ibm.com/docs/en/cics-ts/5.6?topic=files-cics-3270-printers)
21. [Interfaces for z/OS application programmers, IBM z/OS Basic Skills](https://www.ibm.com/docs/en/zos-basic-skills?topic=mainframe-interfaces-zos-application-programmers)

---
*Initially written Sep 17, 2026 · Reviewed: Sep 30, 2026; Oct 15, 2026 · Edited: Sep 30, 2026; Oct 15, 2026 · Last review: Oct 15, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 计算机硬件 › Boards, peripherals & form factors › Peripherals & expansion hardware › Historical and legacy peripherals

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/ibm-3270

English original: https://www.edgepedia.org/ibm-3270
