EasyManuals Logo

COTRUST CTH200 Series User Manual

COTRUST CTH200 Series
350 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #336 background imageLoading...
Page #336 background image
Appendix
326
SMB30 and SMB130: FPORT control register
SMB30 controls FPORT 0 communication mode, and SMB130 controls FPORT 1
communication mode. You can write and read between SMB30 and SMB130 which can be used
to set operation mode of FPORT communication and provide the choice between the FPORT
and the protocols supported by the system. See the following table for detailed description:
SM address
Function description
SMB30
FPORT 0 control register
SMB130
FPORT 1 control register
SM30.0~SM30.1
Port 0 communication protocol selection
SM130.0~SM130.1
Port 1 communication protocol selection
SM30.2~SM30.4
FPORT 0 baud rate
SM130.2~SM130.4
FPORT 1 baud rate
SM30.5
Each character data bit of FPORT 0
SM130.5
Each character data bit of FPORT 1
SM30.6~SM30.7
FPORT 0 parity selection
SM130.6~SM130.7
FPORT 1 parity selection
FPORT control byte format:
MSB LSB
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
p
p
d
b
b
b
m
m
Pp: Parity selection
00No parity
01Even parity
10-- No parity
11Odd parity
d: Each character
data bit
0--8 bits data bit
1--7 bits data bit
bbb: FPORT baud rate
000--38400 bps
001--19200 bps
010--9600 bps
011--4800 bps
100--2400 bps
101--1200 bps
110--115200 bps
111--57600 bps
Mm: Protocol setting
00Point-point port
protocol(PPI/slave
station mode )
01FPORT protocol
10--PPI/ master
station mode
11Reserved(defaul
t PPI/slave station
mode)
<Note> When select mm = 10(PPI master station), PLC will become a network master station,
able to execute NETR and NETW instruction. Ignore 2 to 7 bit in PPI mode.
SMB31 and SMW32: Permanent storage (EEPROM) write control
With control of the user program, you can store the data of V storage into permanent storage,
also known as non-volatile storage. First, store the address into SMW32, then store the saved
command into SMB31. Once you issue the storage command, you cannot change the value of V
storage until the CPU completes the storage operation and SM31.7 is set to 0.
At the end of each scan cycle, the CPU checks for a command to store data in the permanent
storage area. If so, store data into permanent storage. Detailed description is shown in the
following table:

Table of Contents

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the COTRUST CTH200 Series and is the answer not in the manual?

COTRUST CTH200 Series Specifications

General IconGeneral
BrandCOTRUST
ModelCTH200 Series
CategoryController
LanguageEnglish