« FC4A M
ICRO
S
MART
U
SER
’
S
M
ANUAL
»
17-1
17: U
SER
C
OMMUNICATION
I
NSTRUCTIONS
Introduction
This chapter describes the user communication function for communication between the
MicroSmart
and external devices
with an RS232C port. The
MicroSmart
uses user communication instructions for transmitting and receiving communica-
tion to and from external devices.
Upgrade Information
Upgraded CPU modules of slim 20-I/O relay output types and 40-I/O types can also use the user communication through
the RS485 port and three additional BCC calculation formulas; ADD-2Comp, Modbus ASCII, and Modbus RTU. Applica-
ble CPU modules and system program version are shown in the table below. For the procedure to confirm the system pro-
gram version of the CPU module, see page 29-1.
Using the RS485 user communication, the
MicroSmart
CPU module can communicate with a maximum of 31 RS485
devices.
The upgraded CPU modules can use three new BCC calculation formulas of ADD-2comp, Modbus ASCII, and Modbus
RTU for transmit instructions TXD1 and TXD2 and receive instructions RXD1 and RXD2. Use
WindLDR
ver. 4.40 or
higher to program the new BCC. For calculation examples, see page 17-36.
New BCC Calculation Formulas
User Communication Overview
The user communication mode is used for linking the
MicroSmart
to an RS232C communication device such as a com-
puter, modem, printer, or barcode reader.
The all-in-one 10-I/O type CPU module has one RS232C port. The 16- and 24-I/O type CPU modules have one RS232C
port and port 2 connector as standard. By installing an optional RS232C communication adapter (FC4A-PC1) to the port 2
connector, the 16- and 24-I/O type CPU modules can communicate with two external devices simultaneously.
Every slim type CPU module has one RS232C port. An optional RS232C communication module can be attached to any
slim type CPU module to use port 2 for additional RS232C communication. When an optional HMI base module is
attached to a slim type CPU module, an optional RS232C communication adapter can be installed to the port 2 connector
on the HMI base module.
User communication transmit and receive instructions can be programmed to match the communication protocol of the
equipment to communicate with. Possibility of communication using the user communication mode can be determined
referring to the user communication mode specifications described below.
CPU Module
All-in-One Type
Slim Type
FC4A-C10R2
FC4A-C10R2C
FC4A-C16R2
FC4A-C16R2C
FC4A-C24R2
FC4A-C24R2C
FC4A-D20K3
FC4A-D20S3
FC4A-D20RK1
FC4A-D20RS1
FC4A-D40K3
FC4A-D40S3
RS485 User Communication
Compatibility
—
204 or higher
204 or higher
204 or higher
202 or higher
User Communication BCC
Upgrade
(ADD-2Comp, Modbus ASCII,
and Modbus RTU)
BCC Name
Description
ADD-2comp
Add the characters in the range from the BCC calculation star t position to the byte immediately before
the BCC, then inver t the result bit by bit, and add 1.
Modbus ASCII
Calculate the BCC using LRC (longitudinal redundancy check) for the range from the BCC calculation
star t position to the byte immediately before the BCC.
Modbus RTU
Calculate the BCC using CRC-16 (cyclic redundancy checksum) for the range from the BCC calculation
star t position to the byte immediately before the BCC. The generation polynomial is: X
16
+ X
15
+ X
2
+ 1.
Summary of Contents for FC4A-C10R2
Page 1: ...FC4A SERIES Micro Programmable Logic Controller User s Manual FC9Y B812 ...
Page 6: ...PREFACE 4 FC4A MICROSMART USER S MANUAL ...
Page 94: ...2 MODULE SPECIFICATIONS 2 74 FC4A MICROSMART USER S MANUAL ...
Page 184: ...6 ALLOCATION NUMBERS 6 20 FC4A MICROSMART USER S MANUAL ...
Page 218: ...8 ADVANCED INSTRUCTIONS 8 8 FC4A MICROSMART USER S MANUAL ...
Page 240: ...11 BINARY ARITHMETIC INSTRUCTIONS 11 8 FC4A MICROSMART USER S MANUAL ...
Page 244: ...12 BOOLEAN COMPUTATION INSTRUCTIONS 12 4 FC4A MICROSMART USER S MANUAL ...
Page 252: ...13 SHIFT ROTATE INSTRUCTIONS 13 8 FC4A MICROSMART USER S MANUAL ...
Page 274: ...15 WEEK PROGRAMMER INSTRUCTIONS 15 8 FC4A MICROSMART USER S MANUAL ...
Page 378: ...22 DUAL TEACHING TIMER INSTRUCTIONS 22 4 FC4A MICROSMART USER S MANUAL ...
Page 386: ...23 INTELLIGENT MODULE ACCESS INSTRUCTIONS 23 8 FC4A MICROSMART USER S MANUAL ...
Page 408: ...24 ANALOG I O CONTROL 24 22 FC4A MICROSMART USER S MANUAL ...
Page 426: ...26 COMPUTER LINK COMMUNICATION 26 6 FC4A MICROSMART USER S MANUAL ...