by h.n.wang fbs series programmable controller. contents application reference machine automation...

106
By H.N.Wang FBs series Programmable Controller

Upload: ursula-atkins

Post on 13-Jan-2016

230 views

Category:

Documents


1 download

TRANSCRIPT

Page 1: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

By H.N.Wang

FBs series Programmable Controller

Page 2: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Contents

Application Reference Machine Automation Factory Automation System Application

Hardware Integration Model of Main Units On-board Expansions I/O Expansions Optional Expansions Handheld PP and Data Access Panel

Page 3: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Contents

Functionality Integration System Specifications I/O Addressing Communications Interrupts High Speed Counters & Timers High Speed Pulse & PWM Output Temperature Measurement & PID Control 7-segment & 16-segment Display

Page 4: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Contents ROM PACK Text Message through Data Access Panel Intellectual Property Protection Troubleshooting Programming Software -- WinProladder

Page 5: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Application Reference

Machine Automation-Punching-Packing-Printing-Cutting-Drilling-Strapping-Polisher-Feeder-Plastic-Rubber…

Factory Automation-Production

Information-Distributed Control-Conveyor

-Shop-flow…

System Application

-Alarm-Building -Environment-Warehouse

PLC

Page 6: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Model of Main Units

Range of Main Unit Economical Main Units -- MA High Performance Main Units -- MC NC Positioning Main Units – MN Standard equipments for all main units

Power Supply CPU Board with One Communication Port

(Port 0 : RS-232 or USB)

Page 7: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Main Units

I/O Expansion Port

On-board OutputOn-board Communication Port (P0)

On-board Input

On-board expansion

I/O, CPU, CommunicationLED Indicators

Communication Module for option

I/O Capacity:DI:256, DO: 256, RI: 64, RO: 64On-board I/O:10/14 (Without I/O Expansion)20/24/32/40/44/60 (With I/O Expansion)

Execution Time: 0.33µS/Contact instruction

User’s Memory: 20K Words

Data register: 10912+8192+424 Words

Comm. Port: 5 Ports

Interrupt Input: 16 Points (32 Entries)High-speed Counter: 4(HHSC) + 4(SHSC)0.1mS High-speed Timer: 1 + 4 (HST/HSC)

High-speed Pulse/PWM Output: 4-axis

Page 8: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Economical Main Units -- MAWith Relay Output Module Name (FBs-nnMA) 10 14 20 24 32 40 60

I N P U T

High speed input (120K Hz)

Medium speed input (20K Hz)

4 (X0 ~ X3)

Low speed input (200 Hz)

2 4 8 10 16 20 32

Total Input Number 6 8 12 14 20 24 36

O U T P U T

High speed output

Medium speed output

Relay Contact A 4 6 8 10 12 16 24

Total Output Number 4 6 8 10 12 16 24 I/O Expansion NO YES

Communication Expansion 2 ports (Port 1 & Port 2)

Calendar For optional order, standard is without RTC

Detachable Terminal Block For optional order, standard is non-detachable

Page 9: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Economical Main Units -- MAWith Transistor Output Module Name (FBs-nnMAT) 10 14 20 24 32 40 60

I N P U T

High speed input (120K Hz)

Medium speed input (20K Hz)

4 (X0 ~ X3)

Low speed input (200 Hz)

2 4 8 10 16 20 32

Total Input Number 6 8 12 14 20 24 36

O U T P U T

High speed output (120K Hz)

Medium speed output (20K Hz)

4 (Y0 ~ Y3)

Low speed output (200 Hz)

0 2 4 6 8 12 20

Total Output Number 4 6 8 10 12 16 24

I/O Expansion NO YES

Communication Expansion 2 ports (Port 1 & Port 2)

Calendar For optional order, standard is without RTC

Detachable Terminal Block For optional order, standard is non-detachable

Page 10: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High-Performance Main Units -- MCWith Relay Output Module Name (FBs-nnMC) 10 14 20 24 32 40 60

I N P U T

High speed input (120K Hz)

2 (X0 ~ X1)

Medium speed input (20K Hz)

4 6 10 12 14 14 14

Low speed input (200 Hz)

0 0 0 0 4 8 20

Total Input Number 6 8 12 14 20 24 36

O U T P U T

High speed output

Medium speed output

Relay Contact A 4 6 8 10 12 16 24

Total Output Number 4 6 8 10 12 16 24 I/O Expansion NO YES

Communication Expansion 4 ports (Port 1 ~ Port 4)

Calendar YES

Detachable Terminal Block YES

Page 11: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High-Performance Main Units -- MCWith Transistor Output Module Name (FBs-nnMCT) 10 14 20 24 32 40 60

I N P U T

High speed input (120K Hz)

2 (X0 ~ X1)

Medium speed input (20K Hz)

4 6 10 12 14 14 14

Low speed input (200 Hz)

0 0 0 0 4 8 20

Total Input Number 6 8 12 14 20 24 36

O U T P U T

High speed output (120K Hz)

4 (Y0 ~ Y3)

Medium speed output (20K Hz)

0

2 4 4 4 4 4

Low speed output (200 Hz)

0 0 0 2 4 8 16

Total Output Number 4 6 8 10 12 16 24

I/O Expansion NO YES

Communication Expansion 4 ports (Port 1 ~ Port 4)

Calendar YES

Detachable Terminal Block YES

Page 12: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

NC Positioning Main Units -- MNWith Relay Output

Module Name (FBs-nnMN) 20 32 44

I N P U T

Ultra Hi speed input (920K Hz)

2 (X0,X1)

4 (X0,X1,X4,X5)

8 (X0,X1,X4,X5,X8,X9,X12,X13)

Medium speed input (20K Hz)

10 12 8

Low speed input (200 Hz)

0 4 12

Total Input Number 12 20 28

O U T P U T

Ultra Hi speed output (920K Hz)

2 (Y0,Y1)

4 (Y0~Y3) 8 (Y0~Y7)

Medium speed output 0 0 0

Relay Contact A 6 8 8

Total Output Number 8 12 16

I/O Expansion YES

Communication Expansion 4 ports (Port 1 ~ Port 4)

Calendar YES

Detachable Terminal Block YES

Page 13: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

NC Positioning Main Units -- MNWith Transistor Output Module Name (FBs-nnMNT) 20 32 44

I N P U T

Ultra Hi speed input (920K Hz)

2 (X0,X1)

4 (X0,X1,X4,X5)

8 (X0,X1,X4,X5,X8,X9,X12,X13)

Medium speed input (20K Hz)

10 12 8

Low speed input (200 Hz)

0 4 12

Total Input Number 12 20 28

O U T P U T

Ultra Hi speed output (920K Hz)

2 (Y0,Y1)

4 (Y0~Y3) 8 (Y0~Y7)

Medium speed output (20K Hz)

6 4 0

Low speed output (200 Hz)

0 4 8

Total Output Number 8 12 16

I/O Expansion YES

Communication Expansion 4 ports (Port 1 ~ Port 4)

Calendar YES

Detachable Terminal Block YES

Page 14: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Dimension of Main Units

FBs-10XXFBs-14XX

FBs-20XXFBs-24XX

FBs-32XXFBs-40XX

FBs-44MNFBs-60XX

W:60mmH:90mmD:80mm

W:90mm H:90mm D:80mm

W:130mm H:90mm D:80mm

W:175mm H:90mm D:80mm

Page 15: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Full Description of Main unit MA

Relay Output FBs-□□MAΔ–◎ FBs-10MA/FBs-24MAU-D

Transistor Output

FBs-□□MAT◇Δ–◎ FBs-32MAT/FBs-60MATJU-D

MCRelay Output FBs-□□MCΔ–◎–X FBs-14MCU/FBs-40MCU-

D-2

Transistor Output

FBs-□□MCT◇Δ–◎–XY FBs-60MCTJU-D-64

MNRelay Output FBs-□□MNΔ–◎ FBs-20MN/FBs-32MNU-D Transistor Output

FBs-□□MNT◇Δ–◎ FBs-44MNT/FBs-44MNTJU-D

□□ : Number of I/O; 10/14/20/24/32/40/60 for MA/MC, 20/32/44 for MNΔ : Port 0 interface; Blank K RS232, U K USB◇ : Transistor output type; Blank K Sink (NPN), J K Source (PNP)◎ : Power supply; Blank K 100~240VAC, D K 24VDCX : Optional order for high speed input (120K Hz) of the MC main unit (1~6 points)Y : Optional order for high speed output (120K Hz) of the MC main unit (1~4 pts)

Page 16: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

On-board Expansions

Communication Boards Name Interface Port No.

FBs-CB2 RS-232 Port 2

FBs-CB22

RS-232 + RS-232

Port 1 & 2

FBs-CB25

RS-232 + RS-485

Port 1 (RS-232) & Port 2 (RS-485)

FBs-CB5 RS-485 Port 2

FBs-CB55

RS-485 + RS-485

Port 1 & 2

FBs-CBE*

Ethernet Port 1 & 2*FBs-CBE is an Ethernet ↔ Serial converter through port 1 & 2 for interfacing

Page 17: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

On-board Expansions Analog & Display & Memory Boards

Name Interface Specification

FBs-B2DA 0~10V or

0~20mA12-bit resolution14-bit representation

2 channels of analog output

FBs-B2A1D

2 AI + 1 AO

FBs-B4AD 4 channels of analog input

FBs-BDAP Characterized LCD + 6-Key

FBs-PACK 2 blocks of memory

(64KW)

Page 18: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

I/O Expansions

Digital Expansion Units (Built-in Power Supply)

Name Input No.

Output No.

Wiring Mechanism

FBs-24EAP□◇–◎

14 10

Terminal BlockFBs-40EAP□◇–◎

24 16

FBs-60EAP□◇–◎

36 24□ : Type of output; Blank K Relay, T K Transistor◇ : Transistor output type; Blank K Sink (NPN), J K Source (PNP)◎ : Power supply; Blank K 100~240VAC, D K 24VDC

Page 19: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

I/O ExpansionsDigital Expansion Modules (W/o Power Supply)

Name Input No.

Output No.

Wiring Mechanism

FBs-8EA□◇ 4 4

Terminal Block

FBs-8EX 8

FBs-8EY□◇ 8

FBs-16EA□◇ 8 8

FBs-16EY□◇ 16

FBs-20EX 20

FBs-24EA□◇ 14 10

FBs-24EX 24 30-Pin Header with LatchFBs-24EYT 24

FBs-40EA□◇ 24 16 Terminal Block

FBs-60EA□◇ 36 24□ : Type of output; Blank D Relay, T D Transistor◇ : Transistor output type; Blank D Sink (NPN), J D Source (PNP)

Page 20: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

I/O ExpansionsAnalog & Temperature Expansion Modules

Name AI No. AO No.

Tp No. Specification

FBs-6AD 6 Analog:-10~10V/-5~5V/0~10V/0~5V,-20~20mA/-10~10mA/0~20mA/0~10mAResolution : 14-bitAccuracy : ± 1%Conversion time : One scan time

Temperature: Same as below

FBs-2DA 2

FBs-4DA 4

FBs-4A2D 4 2

FBs-2ATC4 2 4

FBs-2ARTD4

2 4

FBs-TC2 2 TC : Thermocouple J/K/R/S/E/T/B/NResolution : 0.1 /℃ 1℃Overall Precision : ± (1%+1℃)Conversion time : 1~6 seconds

FBs-TC6 6

FBs-TC16 16

FBs-RTD6 6 RTD : 3-Wire PT100/PT1000, JIS/DINResolution : 0.1 /℃ 1 ; ℃ Conversion : 1~4 SecOverall Precision : ± 1%

FBs-RTD16 16

Page 21: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

I/O Expansions

7/16 Segment LED Display & Thumbwheel Switch Input Modules

Name Reg. Input No.

Reg. Output No.

Specification

FBs-

7SG1

3 or 4 words8-digit of 7-Seg or4-character of 16-Seg or64 Individual LEDs

FBs-

7SG2

5 or 8 words16-digit of 7-Seg or8-character of 16-Seg or128 Individual LEDs

7-SEG LED

0.56”/0.8”/2.3”/4.0” x 84.0” x 4

16-SEG LED

0.8”/2.3” x 4

FBs-32DGI

8 words 16-bit (4-digit) x 8 or128 Individual inputs

Page 22: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Optional Expansions

Communication Modules Name Interface Port No.

FBs-CM22* RS-232 + RS-232 Port 3 & 4

FBs-CM25* RS-232 + RS-485 Port 3 (RS-232) & Port 4 (RS-485)

FBs-CM55* RS-485 + RS-485 Port 3 & 4

FBs-CM25E* RS-232+RS-485+Ethernet

Port 3 (RS-232) & Port 4 (RS-485)

FBs-CM55E* RS-485+RS-485+Ethernet

Port 3 & 4

FBs-CM25C RS-232↔RS485

FBs-CM5R RS-485 Repeater

FBs-CM5H 4-port RS-485 Hub It is allowed to have the star topology for RS-485 network wiring through FBs-CM5H

* Not supports at MA model

*FBs-CMxxE is an Ethernet ↔ Serial converter through port 4 for interfacing

Page 23: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Optional Expansions

Power Supply Modules & I/O Extension Box

Name Description Specification

FBs-EPOW Power Supply for Expansion Modules

100~240VAC

FBs-EPOW-D

24VDC

FBs-XTNRConversion Box for extension ofI/O Expansion Cable

FBs-EPOW

FBs-XTNR

Page 24: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Handheld PP & Data Access Panel

Name Interface Specification

FP-08 RS-232Handheld Programming PanelDisplay : 16x2 dot matrix LCDOperation : 48-key

FBs-DAP-B RS-485 Data Access PanelPower supply : 24VDCDisplay : 16x2 dot matrix LCDOperation : 20-key

FBs-DAP-BR

RS-485+RFID Reader

FBs-DAP-BW

RS-485+RFID Writer

FBs-DAP-C RS-232 Data Access PanelPower supply : 5VDCDisplay : 16x2 dot matrix LCDOperation : 20-key

FBs-DAP-CR

RS-232+RFID Reader

FBs-DAP-CW

RS-232+RFID Writer

CARD-H Radio Frequency

Wave

Operation frequency : 13.56M HzSensing distance : 10 ~ 15 cm

Page 25: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Summary of the Expansions

Page 26: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

System Specifications

Item Specification Note

Execution time 0.33uS/Contact instruction in average

Program capacity

20K Words

Program memory

Flash ROM or SRAM+ Battery backup

D I G I T A L

(Bit)

X X0 ~ X255 Discrete Input (256 points)

Y Y0 ~ Y255 Discrete Output (256 points)

M

M0 ~ M799 (Non-retentive in default)* Internal Relay (1912

points)* It can be configurable

M800 ~ M1399 (Retentive in default)*

M1400 ~ M1911 (Non-retentive only)

M1912 ~ M2001 Special Relay (90 points)

S S0 ~ S499 (Non-retentive in default)*

Step Relay (1000 points)* It can be configurable

S500 ~ S999 (Retentive in default)*

T T0 ~ T255 Status of Timing (256 points)

C C0 ~ C255 Status of Counting (256 points)

Page 27: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

System Specifications Item Specification Note

R E G I S T E R

(16-bit)

Timer

0.01S T0 ~ T49 (50)* Current value register of timers* It is default, and can be configurable

0.1S T50 ~ T199 (150)*

1S T200 ~ T255 (56)*

Counter

16-bitC0 ~ C139 (140, Retentive)* Current value

register of counters

* It is default, and can be configurable

C140 ~ C199 (60, Non-retentive)*

32-bitC200 ~ C239 (40, Retentive)*

C240 ~ C255 (16, Non-retentive)*

DataRegister

R

R0~R2999 (3000, Retentive)* * It is default, and can be configurable

R3000~R3839 (840, Non-retentive)*

R5000~R8071 (3072, Retentive)**

** R5000~R8071 can be configurable as the Read Only Register

D D0~D3999 (4000, Retentive)

F F0~F8191 (8192, Retentive) File register

Page 28: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

System Specifications

Item Specification Note

R E G I S T E R

(16-bit)

Input Register R3840 ~ R3903 (64)

Output Register R3904 ~ R3967 (64)

SpecialRegister

R R3968 ~ R4167 (200)

D D4000 ~ R4095 (96)

Hardware high speed counter

R4096 ~ R4111 (16)

Not supports in MA model

Software high speed counter

R4112 ~ R4127 (16)

Calendar R4128 ~ R4135 (8) Optional order if MA model

0.1 mS high speed timer R4152 ~ R4154 (3)

Index V, Z, P0 ~ P9 (12)

InterruptControl

Interrupt from Discrete Input

X0 ~ X15 of main unit Trigger by↑, ↓, or both edges

Not supports in MA model

Fixed time interrupt 1…5/10/50/100 mS 1MSI/2MSI/…/100MSI

Page 29: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

System Specifications

Item Specification Note

CommunicationUp to 3 ports for MA model USB/RS-232/RS-485/Ethernet interfaces

FATEK, Modbus RTU/ASCII, FATEK TCP/UDP,Modbus TCP communication protocols

Up to 5 ports for MC/MN model

HighSpeedCounter

Hardware

Up to 4 channels (HSC0~HSC3)

Not supports in MA model

(U/D, U/Dx2,P/R, P/Rx2, A/B, A/BX2, A/BX3, A/BX4)

120K Hz : Single-ended input920K Hz : Differential input

8 counting modes

120K Hz Max. (MC model)920K Hz Max. (MN model)

Software

Up to 4 channels (HSC4~HSC7)

(U/D, P/R, A/B)3 counting modes

Not exceeds 5K Hz in total

High SpeedPulse Output

Up to 4 axes 120K Hz : Single-ended output460K Hz : Differential output (A/B)920K Hz : Differential output (U/D, P/R)Single axis motion control (Point to Point)Multi-axis linear interpolation motion control

3 output modes (U/D, P/R, A/B)

120K Hz Max. (MC model)920K Hz Max. (MN model)

Page 30: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

System Specifications

Item Specification Note

High SpeedPWM Output

Up to 4 channels

72 ~18.432K Hz (0.1% resolution)720 ~184.32K Hz (1% resolution)

High Speed

Timer (0.1 mS)

HSTA (1) Hardware high speed counter HSC0 ~ HSC3 can be configured to perform the high speed timer HST0 ~ HST3 (4)

CapturedInput

Qty X0 ~ X35 of main unitThe built-in inputs of the main unit can be configured to catch the very short time input signal less than one scan time of stand

PulseWidth

> 10uS (High speed input)

> 47uS (Medium speed input)

> 470uS (Low speed input)

Digital FilterX0 ~ X15 of main unit

By frequency : 14K ~ 1.8M Hz adjustableBy time : 0.1~1.5mS/1~15mS adjustable

X16 ~ X35 of main unitAdjustable time constant from 1mS ~ 15mS

Page 31: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

I/O Addressing

Name Input Address

Output Address

Note

FBs-10xx X0 ~ X5 (6) Y0 ~ Y3 (4)

Main Units

FBs-14xx X0 ~ X7 (8) Y0 ~ Y5 (6)

FBs-20xx X0 ~ X11 (12) Y0 ~ Y7 (8)

FBs-24xx X0 ~ X13 (14) Y0 ~ Y9 (10)

FBs-32xx X0 ~ X19 (20) Y0 ~ Y11 (12)

FBs-40xx X0 ~ X23 (24) Y0 ~ Y15 (16)

FBs-44MN X0 ~ X27 (28) Y0 ~ Y15 (16)

FBs-60xx X0 ~ X35 (36) Y0 ~ Y23 (24)

FBs-B2DAD4076 (CH0)D4077 (CH1)

.On board Analog Input/Output

expansion

0~10V or 0~20mA 12-bit resolution 14-bit representation (0 ~ 16380)

FBs-B2A1DD4072 (CH0)D4073 (CH1)

D4076 (CH0)

FBs-B4AD

D4072 (CH0)D4073 (CH1)D4074 (CH2)D4074 (CH3)

Page 32: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

I/O Addressing

Name DI Address

DO Address

RI Address

RO Address

Note

FBs-8EA 4 4

ExpansionUnits or Modules

FBs-8EX 8

FBs-8EY 8

FBs-16EA 8 8

FBs-16EY 16

FBs-20EX 20

FBs-24EA 14 10

FBs-24EX 24

FBs-24EYT

24

FBs-40EA 24 16

FBs-60EA 36 24

Page 33: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

I/O Addressing

Name DI Address

DO Address

RI Address

RO Address

Note

FBs-6AD 6

FBs-2DA 2

FBs-4DA 4

FBs-4A2D 4 2

FBs-2ATC4 8 4 First 2-ch of RI for analog input8-point of DO+2-ch of RI to read multiple temperature channels

FBs-2ARTD4 8 4

FBs-TC2 8 1

8-point of DO+1-ch of RI for reading multiple temperature channels

FBs-TC6 8 1

FBs-TC16 8 1

FBs-RTD6 8 1

FBs-RTD16 8 1

FBs-7SG1 3 or 4 3 for Decode; 4 for Non-decode

FBs-7SG2 5 or 8 5 for Decode; 8 for Non-decode

FBs-32DGI 8

Page 34: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Examples for I/O Addressing

+ + +

FBs-24MC FBs-40EA

FBs-32DGI FBs-8EA

X0~X13Y0~Y9

X14~X37Y10~Y25

R3840~R3847

X38~X41Y26~Y29

+ + +

FBs-40MC

FBs-RTD6 FBs-4A2D

FBs-16EA

X0~X23Y0~Y15

R3840Y16~Y23

R3841~R3844

R3904~R3905

X24~X31Y24~Y31

Page 35: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Operation of the Main UnitSequence operation : Cyclic Scan

Housekeeping:Communications,Data swap,Hi-speed pulse output,Hi-speed counter,Time base generation,LED indication, • • •

+

Input Status

Output Status

Status memory

• • •

Program memory

Get Input

Put Output

Solve LadderDiagram Program

*Execution time of one cycle is called scan time, the scan time varies with the program’s execution*The duration of the input signal should stand more than one scan time for proper control

>OneScanTime

>OneScanTime

Input :

Page 36: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications

5 Communication Ports RS-232/RS485/USB/Ethernet

Communication Protocols FATEK/FATEK-TCP/UDP Modbus RTU/Modbus ASCII/

Modbus TCP User Defined Protocol

Communication speed Up to 921600 bps User Defined Baud Rate

Page 37: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications

Port 0 Interface Comm. Parameters

Protocol Note

USB or RS-232

Baud rate: 9600/19200/38400/57600/115200 bpsData bit : 7-bitParity : EvenStop bit : 1-bit

FATEK slave

It needs to install the

USBcommunication driver on PC environment for working if it equips the USB interface Register Function Note

Lo-byte of R4040

Delay time setting to reply the communication command

Unit in mS

R4050 Register for communication parameters setting

Lo-byte of R4149

Ignore the station number while communicating with HMI, SCADA devices; =1, without checking the station number =Others, checking the station number to reply

Page 38: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications

Port 1 Interface Comm. Parameters

Protocol Note

RS-232 or RS-485(FBs-CB22/ FBs-CB25/ FBs-CB55)

Baud Rate : 4800/9600/19200/38400/76800/ 153600/307200/614400/ 7200/14400/28800/57600/115200/ 230400/921600 bps or User definedData bit : 7-bit or 8-bitParity : Even, Odd, NoneStop bit : 1-bit or 2-bit

FATEKMaster/Slave

Modbus RTU/ASCIIMaster/Slave

.Working as the FATEK master through FUN151 MD 0 instruction

.Working as the Modbus master through FUN150 instruction

.Working as the printer interface through FUN94 instruction

.Working as the modem interface if Hi-byte of R4149=55H

Ethernet(FBs-CBE)

Baud Rate : 115200 BPSDate bit : 7-bitParity : EvenStop bit : 1-bit

FATEK slaveCBE in FATEK server mode

FBs-CBE is an Ethernet ↔

Serialconverter through port 1 & 2 forinterfacing

Page 39: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsPort 1 Register Function Note

Hi-byte of R4040

Delay time setting to reply the communication command

Unit in mS

R4047 Register for communication protocol setting

R4146 Register for communication parameters setting

D4000 Register for Baud Rate setting while user defined

Lo-byte of

R4147

Time span setting for no reply detectionIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of

R4147

Delay time setting to transmit next command packetIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of

R4148

Time interval setting to detect new command packetIt works with FUN150, FUN151 MD 1/2 instructions

Valid while M1956=1;Unit in 16-bit of bps

Hi-byte of

R4149

Setting for modem interface=55H, port 1 works as the modem interface

For modem interface,R4149=55xxH

Lo-byte of R4155

Ignore the station number while communicating with HMI, SCADA devices=1, without checking the station number=Others, checking the station number to reply

Page 40: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications

Port 2 Interface Comm.

Parameters Protocol Note

RS-232 or RS-485(FBs-CB2/ FBs-CB5/ FBs-CB22/ FBs-CB25/ FBs-CB55)

Baud Rate : 4800/9600/19200/38400/ 76800/153600/307200/614400/ 7200/14400/28800/57600/ 115200/230400/921600 bps or User definedData bit : 7-bit or 8-bitParity : Even, Odd, NoneStop bit : 1-bit or 2-bit

FATEKMaster/Slave

Modbus RTU/ASCIIMaster/Slave

.Working as the FATEK master through FUN151 MD 0 instruction

.Working as the Modbus master through FUN150 instruction

.Working as the FATEK high speed link master through FUN151 MD 3 instruction

Ethernet(FBs-CBE)

Baud Rate : 115200 bpsData bit : 7-bit if FATEK : 8-bit if ModbusParity : EvenStop bit : 1-bit

FATEK SlaveCBE in FATEK server mode

FATEK MasterCBE in FATEK client mode

Modbus RTU SlaveCBE in Modbus server mode

.FBs-CBE is an Ethernet ↔ Serial converter through port 1 & 2 for interfacing

.Working as the FATEK master through FUN151 MD 0 instruction via the Ethernet; where CBE is in FATEK client mode

Page 41: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsPort 2 Register Function Note

Lo-byte of R4041

Delay time setting to reply the communication command

Unit in mS

R4047 Register for communication protocol setting

R4158 Register for communication parameters setting

R4161 Communication parameters setting for High Speed Link

D4001 Register for Baud Rate setting while user defined

Hi-byte of

R4148

Time interval setting to detect new command packetIt works with FUN150, FUN151 MD 1/2 instructions

Valid while M1956=1;Unit in 16-bit of bps

Lo-byte of

R4159

Time span setting for no reply detectionIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of

R4159

Delay time setting to transmit next command packetIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of R4155

Ignore the station number while communicating with HMI, SCADA devices=1, without checking the station number=Others, checking the station number to reply

Page 42: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications Port 3 * * Not supports at MA model

Interface Comm. Parameters

Protocol Note

RS-232 or RS-485(FBs-CM22/ FBs-CM25/ FBs-CM55/ FBs-CM25E/ FBs-CM55E)

Baud Rate : 4800/9600/19200/38400/ 76800/153600/307200/614400/ 7200/14400/28800/57600/ 115200/230400/921600 bps or User definedData bit : 7-bit or 8-bitParity : Even, Odd, NoneStop bit : 1-bit or 2-bit

FATEKMaster/Slave

Modbus RTU/ASCIIMaster/Slave

.Working as the FATEK master through FUN151 MD 0 instruction

.Working as the Modbus master through FUN150 instruction

Page 43: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsPort 3 * * Not supports at MA model

Register Function Note

Hi-byte of R4041

Delay time setting to reply the communication command

Unit in mS

R4047 Register for communication protocol setting

R4043 Register for communication parameters setting

D4002 Register for Baud Rate setting while user defined

Lo-byte of

R4045

Time span setting for no reply detectionIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of

R4045

Delay time setting to transmit next command packetIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of

R4148

Time interval setting to detect new command packetIt works with FUN150, FUN151 MD 1/2 instructions

Valid while M1956=1;Unit in 16-bit of bps

Lo-byte of R4156

Ignore the station number while communicating with HMI, SCADA devices=1, without checking the station number=Others, checking the station number to reply

Page 44: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsPort 4 * * Not supports at MA model

Interface Comm. Parameters

Protocol Note

RS-232 orRS-485

( FBs-CM22/ FBs-CM25/ FBs-CM55 )

Baud Rate : 4800/9600/19200/38400/ 76800/153600/307200/614400/ 7200/14400/28800/57600/ 115200/230400/921600 bps or User definedData bit : 7-bit or 8-bitParity : Even, Odd, NoneStop bit : 1-bit or 2-bit

FATEKMaster/Slave

Modbus RTU/ASCIIMaster/Slave

.Working as the FATEK master through FUN151 MD 0 instruction

.Working as the Modbus master through FUN150 instruction

Ethernet( FBs-CM25E/ FBs-CM55E )

Baud Rate : 9600/19200/38400/57600/ 115200/230400 bps Data bit : 7-bit or 8-bitParity : Even, Odd, NoneStop bit : 1-bit or 2-bit

FATEK SlaveFBs-CMxxE in FATEK server mode

FATEK MasterFBs-CMxxE in FATEK client mode

Modbus RTU SlaveFBs-CMxxE in Modbus server mode

.FBs-CMxxE is an Ethernet ↔ Serial converter through port 4 for interfacing

.Working as the FATEK master through FUN151 MD 0 instruction via the Ethernet; where CMxxE is in FATEK client mode

Page 45: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsPort 4 * * Not supports at MA model

Register Function Note

Lo-byte of R4042

Delay time setting to reply the communication command

Unit in mS

R4047 Register for communication protocol setting

R4044 Register for communication parameters setting

D4003 Register for Baud Rate setting while user defined

Lo-byte of R4048

Time span setting for no reply detectionIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of R4048

Delay time setting to transmit next command packetIt works with FUN150, FUN151 MD 0 instructions

Unit in 10 mS

Hi-byte of R4148

Time interval setting to detect new command packetIt works with FUN150, FUN151 MD 1/2 instructions

Valid while M1956=1;Unit in 16-bit of bps

Hi-byte of R4156

Ignore the station number while communicating with HMI, SCADA devices=1, without checking the station number=Others, checking the station number to reply

Page 46: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications

Port 0

Port 1

Port 2

Port 3

Port 4

Communication parameters R4050 R4146 R4158 R4043 R4044

Comm. Parameters for High Speed Link

R4161

Delay time to reply LB of R4040

HB of R4040

LB of R4041

HB of R4041

LB of R4042

Communication protocol R4047

User defined Baud Rate setting D4000 D4001 D4002 D4003

Ignore station No. while HMI, SCADA

LB of R4149

LB of R4155

HB of R4155

LB of R4156

HB of R4156

Port ready indicator M1960 M1962 M1936 M1938

Port finished indicator M1961 M1963 M1937 M1939

Time interval to detect new packet HB of R4148 (M1956=1) Time span for no reply detection LB of

R4147LB of R4159

LB of R4045

LB of R4048

Delay time to transmit next packet

HB of R4147

HB of R4159

HB of R4045

HB of R4048

ItemComm. port

Note : LB means Low Byte ; HB means High Byte

Page 47: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsSetting for communication protocol Method 1

55H b7 b6 b5 b4 b3 b2 b1 b0

High Byte Low Byte

R4047 :

Port 1 Port 2 Port 3 Port 4

b1=0 FATEK slave

=1 Modbus RTU slave

b2=0 FATEK slave

=1 Modbus RTU salve

b3=0 FATEK slave

=1 Modbus RTU salve

b4=0 FATEK slave

=1 Modbus RTU salve

Note : b0, b5 ~ b7 don’t care

Page 48: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsSetting for communication protocol Method 2

56H b7 b6 b5 b4 b3 b2 b1 b0

High Byte Low Byte

R4047 :

Port 1 Port 2 Port 3 Port 4

b1b0

=00/01 FATEK slave

=10 Modbus RTU slave

=11 Modbus ASCII slave

b3b2

=00/01 FATEK slave

=10 Modbus RTU slave

=11 Modbus ASCII slave

b5b4

=00/01 FATEK slave

=10 Modbus RTU slave

=11 Modbus ASCII slave

b7b6

=00/01 FATEK slave

=10 Modbus RTU slave

=11 Modbus ASCII slave

Page 49: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsSetting for communication parameters

56H b7 b6 b5 b4 b3 b2 b1 b0

High Byte Low Byte

Comm. Para. Reg.

b7 b6 b5 b4

b3 b2 b1 b0

Value

Baud Rate (bps)

Port 0

R4050

=0, Even parity

=0, 7-bit data

=0, None parity

=0, 1-bit stop

0 0 0 0

0 4800

Port 1

R4146 0 0 0 1 1 9600

Port 2

R4158 0 0 1 0

2 19200

R4161(Hi-speed Link)

0 0 1 1

3 38400

Port 3

R4043 0 1 0 0

4 76800

Port 4

R4044 0 1 0 1

5 153600

0 1 1 0

6 307200

Baud_Rate_Div 0 1 1 1

7 614400

Port 1

D4000

=1, Odd parity

=1, 8-bit data

=1, With parity

=1, 2-bit stop

1 0 0 0

8 7200

Port 2

D4001 1 0 0 1

9 14400

Port 3

D4002 1 0 1 0

A 28800

Port 4

D4003 1 0 1 1

B 57600

Baud_Rate_Div=A/B - 1 1 1 0 0

C 115200

Where, A=18432000 B=Baud RateFill these registers with the Baud_Rate_Div to get user defined Baud Rate

1 1 0 1

D 230400

1 1 1 0

E 921600

1 1 1 1

F User defined

Page 50: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsDelay time to reply/Time span for no reply detection/Delay time to transmit next packet

Master

Slave

Sending one packet of message Receiving one packet of message

Message for this station and passes error check ?

Yes

NoNo reply

Delay time to reply times up ?

Reply according to this packet of message

Start the time span timerfor no reply detection

Receive the reply message ?

Yes

No

Yes

Time span timer times up ?

No

No

Yes

Set error code

Finish this packetof communication

Delay time toTX next packet

times up ?

Yes

No

Page 51: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications Data flow

Simplex

Half duplex

Packet of message & Time interval to detect new packet

Synchronized by Start_of_Text & End_of_Text Synchronized by time interval

Master

Slave

No reply from slave

Command

Command

Reply for this command

Character 0of this packet

Character 1of this packet

Character Nof this packet

• • •

Character stream

Character 0of next packet

• • • Idle time can’t exceed the “Time interval to detect new

packet”

Idle time over “Time interval to detect new packet”

.Time interval to detect new packet = 48 x 1/Baud Rate (M1956=0) = High Byte of R4148 x 16/ Baud Rate (M1956 =1)

Page 52: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsSettings through the WinProladder utility

Comm. Parameters

Delay time to replyDelay time to TX nextTime span for no reply detection

Ignore station No. while HMI, SCADA

Comm. Protocol

Modem interface (Port 1 only)

Page 53: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication Protocols FATEK communication protocol

Modbus RTU communication protocol

Modbus ASCII communication protocol

STX

(2 Chars)Station No.

(2 Chars)Command

Data Body (0 ~ 500 Chars)

(2 Chars)Checksum

ETX

START ADDRESS

FUNCTION

DATA CRC16 END

T1-T2-T3-T4

8 BITS 8 BITS XX 8 BITS

16 BITS

T1-T2-T3-T4

START ADDRESS

FUNCTION

DATA LRC Check

END

1 Char :

2 Chars 2 Chars XX Chars

2 Chars 2 Chars CRLF

Page 54: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications Comm. Port works as the communication slave

Port 0 : FATEK communication slave Port 1 ~ 4 : FATEK, Modbus RTU/ASCII or User defined (FUN151 MD 2 instruction)

communication slave Port 1 : FATEK communication slave through MODEM (FBs-CB2x) Port 1 : FATEK TCP/UDP communication slave through Ethernet (FBs-CBE) Port 2 : Modbus TCP communication slave through Ethernet (FBs-CBE) Port 4 : FATEK TCP/UDP or Modbus TCP communication slave through Ethernet

(FBs-CMxxE)

Comm. Port works as the communication master Port 1 ~ 4 : Master of the FATEK CPU Link (FUN151 MD 0) network

through RS-232 or RS-485 interface Port 1 ~ 4 : Master of the Modbus RTU/ASCII (FUN150) network

through RS-232 or RS-485 interface Port 1 ~ 4 : User defined (FUN151 MD 1 instruction) communication master Port 1 : FATEK communication master through MODEM (FBs-CB2x) Port 1 : ASCII file output for printing (FUN94) (FBs-CB2x) Port 2 : Master of the FATEK High Speed CPU Link (FUN151 MD 3) network

through RS-232 or RS-485 interface Port 2 : Master of the FATEK CPU Link (FUN151 MD 0) through Ethernet (FBs-CBE) Port 4 : Master of the FATEK CPU Link (FUN151 MD 0) through Ethernet (FBs-

CMxxE)

Page 55: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication Instructions FUN151 (CLINK) : Edge-trigger to execute

MD 0 : FATEK CPU Link MD 1 : Master of user defined communication

protocol MD 2 : Slave of user defined communication protocol MD 3 : FATEK High Speed CPU Link

FUN150 (M-BUS) : Edge-trigger to execute . Modbus ASCII/RTU master FUN94 (ASCWR) : Edge-trigger to execute . ASCII file Output for printing

Page 56: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication Instructions FUN151 MD 0 : Only the master of the FATEK CPU Link network needs this instruction

Link Table*The data update rate depends on the scan time

*Cursor at instruction and press “Z” key for fast popping up the link table screen

Port No.: 1~4

FUN151 MD 0

Starting registerto store

Link table

Starting registerfor

Working auxiliary(8 registers)

One communication transaction

(7 registers occupied)

1

2

3

Page 57: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsFUN151 MD 1 : Communication master of user defined protocol

User defined table

SR+0 : =0, TX only =1, TX then RX without error =81H, TX then RX even errorSR+1 : STX+ ETXSR+2 : Qty of TX dataSR+3 : TX Data 0SR+4 : TX Data 1 • • • • • •

WR+0 : Result code • • • WR+8 : Qty of RX dataWR+9 : RX Data 0WR+10 : RX Data 1WR+11 : RX Data 2 • • • • • •

Port No.: 1~4

FUN151 MD 1

Starting registerto store

User defined table

Starting registerfor

Working auxiliary(8 registers)

Page 58: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsFUN151 MD 2 : Communication slave of user defined protocol

SR+0 : =0, RX only without error

=1, RX then TX without error =80H, RX only even error =81H, RX then TX even errorSR+1 : STX+ ETXSR+2 : Qty of TX dataSR+3 : TX Data 0SR+4 : TX Data 1 • • • •

WR+0 : Result code • • • WR+8 : Qty of RX dataWR+9 : RX Data 0WR+10 : RX Data 1WR+11 : RX Data 2 • • • • • •

User defined table

Port No.: 1~4

FUN151 MD 2

Starting registerto store

User defined table

Starting registerfor

Working auxiliary(8 registers)

Page 59: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsFUN151 MD 3 : Only the master of the FATEK High Speed CPU Link network needs this instruction M1958 of the slave of the high speed CPU Link network must be ON

Hi-Speed Link

Table

*The data update rate is independent with the scan time

Port No.: 2

FUN151 MD 3

Starting registerto store Hi-speed

Link table

Starting registerfor

Working auxiliary(8 registers)

One communication transaction

(7 registers occupied)

*Cursor at instruction and press “Z” key for fast popping up the Hi-Speed Link Table screen 1

2

3

Page 60: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsFUN150 : Only the master of the Modbus network needs this instruction

Modbus Master Table

*The data update rate depends on the scan time

Port No.: 1~4

Starting registerto store Modbus

Master table

Starting registerfor

Working auxiliary(8 registers)

One communication transaction

(7 registers occupied)

*Cursor at instruction and press “Z” key for fast popping up the Hi-Speed Link Table screen

1

23

Page 61: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication Instructions

Communication port works as the Modbus slave (Port 1 ~ 4)

Mapping Rule

5-Code

6-Code

Modbus function codes supported by FUN150

Code 01 : Read Coil Status 0xxxx Code 05 : Force Single Coil 0xxxx

Code 02 : Read Input Status 1xxxx Code 06 : Preset Single Register 4xxxx

Code 03 : Read Holding Registers 4xxxx Code 15 : Force Multiple Coils 0xxxx

Code 04 : Read Input Registers 3xxxx Code 16 : Preset Multiple Registers 4xxxx

Page 62: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsFUN94 : ASCII file Output for printing through port 1

ASCII Table

*It should be the printer without the print driver for working.

*The printer must equip with RS- 232 interface, or it needs Parallel ↔ RS-232 converter

FUN94 MD 0

Starting registerto store

ASCII table

Starting registerfor

Working auxiliary(8 registers)

Page 63: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsPort 1 works as the Modem interface

. Remote programming or diagnostics (R4149 = 55xxH)

. Sending SMS by FUN151 MD 1 instruction through the GSM modem (R4149 = 00xxH)

Page 64: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsPort 1 works as the Modem interface

CPU Link through Modem interface:Setting of the registers:.R4149=55xxH.R4140 ~ R4145 : Storing the phone number to dial up.R4163_Nibble0 (b0~b3 of R4163) =1, it doesn’t detect dial tone nor busy tone while dialing =2, it detects only dial tone but doesn’t detect busy tone while dialing =3, it dials directly without detecting dial tone, but will detect busy tone after dialing =0,4~F, it detects both dial tone and busy tone while dialing.R4163_Nibble1 (b4~b7 of R4163) =0, Modem works by manufacturing default (AT&F…) =1, Modem works by user setting (AT&Y…)

.R4163_Highbyte (b8~b15 of R4163) : Ring count number for modem to answer the incoming call (0~9)Interface signals:.M1959 : OFF, dialing by Tone ON, dialing by Pulse

.M1964 : OFFON, Dial up ONOFF, Hang up

.M1965 : ON, Connect

.M1966 : ON, Disconnect

Page 65: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communication InstructionsPort 1 works as the Modem interfaceCPU Link through Modem interface:

Dial up & Hang up

Format of phone number in R4140 ~ R4145

Remote CPU Link through FUN151 MD 0

Page 66: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications Communication cable for Modem D-SUB 9 Male connector (To Port 1 of PLC) D-SUB 9 Male connector (To

Modem) Pin_2 (TXD) Pin_3 (RXD) Pin_3 (RXD) Pin_2 (TXD) Pin_5 (SG) Pin_5 (SG) Pin_8 (RTS) Pin_7 (CTS) Pin_7 (CTS) Pin_8 (RTS)

Communication cable for Printer D-SUB 9 Male connector (To Port 1 of PLC) D-SUB 25 Male connector

(To Printer)

Pin_2 (TXD) Pin_2 (RXD) Pin_5 (SG) Pin_7 (SG) Pin_7 (CTS) Pin_5 (RTS)

Page 67: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Communications

Remote communication through the Ethernet solution.Server mode .Client

mode

Communication slave

Comm. master

Comm. slave

Ethernet Etherne

tRS-485 RS-485

Comm. slave

Rs-485

Comm. master

Comm. master

*It can support two communication protocols (Fatek & Modbus) at the same time through FBs-CBE*Only one communication protocol (Fatek or Modbus) can be supported through FBs-CMxxE

Page 68: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

CommunicationsConfigure the Ethernet module through the configuration utility Ether_cfg.exe

*This map table appears at client mode only

*It needs to turn off the firewall protection of the system to have proper operation while executing the Ether_cfg.exe utility.

Page 69: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

InterruptsSequence + Interrupted operation : Cyclic Scan+ Interrupt Service Processing

Housekeeping:Communications,Data swap,Hi-speed pulse output,Hi-speed counter,Time base generation,LED indication, • • •

+

Input Status

Output Status

Status memory

• • •

Program memoryGet Input

Put Output

Solve LadderDiagram Program

Interrupt

Interrupt ServiceRoutine

InterruptInterrupt ServiceRoutine

*It needs to join FUN74 instruction to get immediate I/O response in interrupt service routine

*Interrupt can occur at any time

Page 70: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Interrupts

Description of the interrupt processing

Page 71: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Interrupts

Sample description:X0 : Sensor to stop the motionX10 : Start buttonX11 : Stop buttonY0 : Output to control the motor

Interrupt service routine : Stop the motor immediately while the sensor is sensing the target, it can have the best control precision with the least shift of motion

Interrupt method : Start the motor at main program

Cyclic scan method : Start and stop the motor all at the main program, it may have one scan time shift for control precision

Sample of interrupt control

*It is necessary to configure the discrete input as the interrupt input for working

Page 72: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

InterruptsInterrupt configuration

Page 73: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Interrupts Interrupt Source

PriorityInterrupt Label

Cause to interrupt Note

0.1 mS Hi-speed Timer

1 (Most)

HSTAI Times up from HSTA (CV=PV)

No interrupt if HSTA works as cyclic timer

System fixed time

2 1MSI One interrupt every 1 mS Only one of these can be energized for proper operation; it means if 1MSI is working, the others can’t be enabled, and so on … Fixed time interrupt enabled/disabled control:R4162 : b0, Enable (0) / Disable (1) 1MSI b1, Enable (0) / Disable (1) 2MSI b2, Enable (0) / Disable (1) 3MSI b3, Enable (0) / Disable (1) 4MSI b4, Enable (0) / Disable (1) 5MSI b5, Enable (0) / Disable (1) 10MSI b6, Enable (0) / Disable (1) 50MSI b7, Enable (0) / Disable (1) 100MSI

2 2MSI One interrupt every 2 mS

2 3MSI One interrupt every 3 mS

2 4MSI One interrupt every 4 mS

2 5MSI One interrupt every 5 mS

2 10MSI One interrupt every 10 mS

2 50MSI One interrupt every 50 mS

2 100MSI One interrupt every 100 mS

High speed counter orHigh speed timer

3 HSC0I/HST0ICounts up (CV=PV) orTimes up (CV=PV)

Hardware high speed counter HSC0 ~ 3 also can be configured in working as the 0.1mS high speed timer.HSC0I ~ HSC3I if working as the counterHST0I ~ HST3I if working as the timer

4 HSC1I/HST1I

5 HSC2I/HST2I

6 HSC3I/HST3I

Hi-speed pulse output

7 PSO0I

Complete of the pulse output

8 PSO1I

9 PSO1I

10 PSO1I

Interrupt List

Page 74: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Interrupts Interrupt Source Priority Interrupt Label Cause to interrupt Note

Inputs of the main unit

11 X0+I

HSC4I

S

HSC7I

Input X0 from Lo to Hi (↑)It is necessary to configure the discrete input of the main unit as the interrupt input for working

The software high speed counter HSC4~7 are accomplished by the interrupt method

It is configurable for the input of the software high speed counter from X0 ~ X15 of the main unit

12 X0-I Input X0 from Hi to Lo (↓)

13 X1+I Input X1 from Lo to Hi (↑)

14 X1-I Input X1 from Hi to Lo (↓)

15 X2+I Input X2 from Lo to Hi (↑)

16 X2-I Input X2 from Hi to Lo (↓)

37 X13+I Input X13 from Lo to Hi (↑)

38 X13-I Input X13 from Hi to Lo (↓)

39 X14+I Input X14 from Lo to Hi (↑)

40 X14-I Input X14 from Hi to Lo (↓)

41 X15+I Input X15 from Lo to Hi (↑)

42 (Least)

X15-I Input X15 from Hi to Lo (↓)

HSC4S

HSC7

X0

• •

X15

Interrupt List

*The corresponding interrupt can be disabled by FUN146, and enabled by FUN145

Page 75: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Interrupts

Output of Y0Status of Y0

Output of Y0Status of Y0

.Critical timing of the interrupt program

Interrupt service routine

.Without critical timing of the interrupt program

HSC0 interruptduring this period

HSC0 interrupt before this

OneScanTime

Page 76: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Counters & Timers

4 sets of Hardware High Speed Counter

8 Counting Modes U/D, U/Dx2, K/R, K/Rx2

A/B, A/Bx2, A/Bx3, A/Bx4 Up to 920K Hz for MN Main Unit Up to 120K Hz for MC Main Unit

4 sets of Software High Speed Counter

3 Counting Modes U/D, K/R, A/B

Not Exceeds 5K Hz in Total

Page 77: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Counters & Timers

Hardware High Speed Counter (HHSC) *MA main unit doesn’t support

Counting Input

Control Input

CVRegister

PVRegister

SoftwareMask

SoftwareClear

SoftwareDirection(P/R only)

InterruptLabel

U/P/A D/R/B Mask Clear

HSC0 X0 X1 X2 X3 DR4096 DR4098 M1940 M1941 M1942 HSC0I

HSC1 X1/X4 X5 X6 X7 DR4100 DR4102 M1946 M1947 M1948 HSC1I

HSC2 X4/X5/X8 X9 X10 X11 DR4104 DR4106 M1976 M1977 M1978 HSC2I

HSC3 X5/X12 X13 X14 X15 DR4108 DR4110 M1979 M1980 M1981 HSC3I

U : Up D : DownP : PulseR : DirectionA : Phase AB : Phase B

*It needs FUN92 instruction to read the current counting value, and FUN93 to write the current value or preset value for interrupt control if necessary*MN main units can support up to 920K Hz for counting*MC main units can support up to 120K Hz for counting

Page 78: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Counters & Timers

Hardware High Speed Counter Configuration *MA main unit doesn’t support

HSC0: DR4096HSC1: DR4100HSC2: DR4104HSC3: DR4108

FUN92 Current Counting Value of HHSC

Preset Value Of HHSC

FUN93 Current Value or Preset Value of HSC0~HSC3

Hardware Circuit

*The interrupt service can be disabled by FUN146 instruction without disturbing the counting, and then enabled by FUN145 for control

*The interrupt service routine will be executed while PV=CV of counting

*8-mode: U/D U/D x 2 P/R P/R x 2 A/B A/B x 2 A/B x 3 A/B x 4

Page 79: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Counters & Timers

Software High Speed Counter (SHSC)Counting Input

Control Input

CVRegister

PVRegister

SoftwareMask

SoftwareDirection(P/R only)

InterruptLabel

U/P/A D/R/B Mask Clear

HSC4

X0~X15

DR4112 DR4114 M1982 M1983 HSC4I

HSC5 DR4116 DR4118 M1984 M1985 HSC5I

HSC6 DR4120 DR4122 M1986 M1987 HSC6I

HSC7 DR4124 DR4126 M1988 M1989 HSC7IU : Up D : DownP : PulseR : DirectionA : Phase AB : Phase B

*The inputs of the main unit can be configured as the input of SHSC*The counting is interrupt driven causing from the on/off change of input *Total input frequency not exceeds 5K Hz for counting to avoid heavy loading from interrupt processing; more higher input frequency will reduce the system performance and increase the scan time*The hardware high speed counter is more suitable if the input frequency exceeds 2K Hz*When working in A/B mode, it needs the inputs in pair; for exa. X0/X1 are inputs of A/B *It doesn’t need FUN92 & FUN93 instructions for SHSC application

Page 80: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Counters & Timers

Software High Speed Counter Configuration

CV Register

PV Register

HSC4 DR4112 DR4114

HSC5 DR4116 DR4118

HSC6 DR4120 DR4122

HSC7 DR4124 DR4126

*The interrupt service routine will be executed while PV=CV of counting

*Disables the corresponding input interrupt of SHSC also stops the counting

Page 81: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Counters & Timers

0.1 mS High Speed Timer -- HSTA

Write preset value with 0, the HSTA works as the 0.1mS circular timer; DR4152 is the current value of timing through FUN92 instruction

DR4152:0,1,…,FFFFFFFF,0,1,.. FUN92 Current Value

of 0.1mS timing

Preset Value of HSTA (16-bit)

FUN93Preset Value=0

Hardware circuit

0.1mS Circular Timer

Scalable interrupt timer in 0.1mS resolutionWrite preset value except 0, the HSTA works as the delay time interrupt timer in 0.1mS resolution

FUN93 2 ≤ Preset Value ≤ 65535

The interrupt service routine HSTAI will be executed every preset time

interval

Edge trigger to enable HSTA in main program

Page 82: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Counters & Timers

Hardware High Speed Timer Configuration *MA main unit doesn’t support

HST0: DR4096HST1: DR4100HST2: DR4104HST3: DR4108

FUN92 Current Timing Value of HHST

Preset Value Of HHST

FUN93 Current Value or Preset Value of HST0~HST3

Hardware Circuit

*Write preset value through FUN93 *Read current timing value through FUN92

*The interrupt service routine will be executed while PV=CV of timing

0.1mS Circular Timer orScalable interrupt timer in 0.1mS resolution

Page 83: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

4-axis High Speed Pulse Output 3 Output Modes

U/D, K/R, A/B Up to 920K Hz for MN main unit (U/D, K/R) Up to 460K Hz for MN main unit (A/B) Up to 120K Hz for MC main unit (U/D, K/R) Up to 60K Hz for MC main unit (A/B) Up to 20K Hz for MA main unit (U/D, K/R) Up to 10K Hz for MA main unit (A/B) Single Axis Point to Point Motion Control Multi-axis Point to Point Motion Control

with Linear Interpolation

Page 84: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

High Speed Pulse Output (HSPO) Output Current

OutputFrequency

Current PulsePosition

RemainingPulse forOutput

Error Code

FinishedStep

ReadyFlag

Finish Flag

InterruptLabel

NoteU/P/A D/R/B

Ps 0 Y0 Y1 DR4080 DR4088 DR4072 R4060

R4064 M1992

M1996

PSO0I SingleAxisMotionControl(FUN140)

Ps 1 Y2 Y3 DR4082 DR4090 DR4074 R4061

R4065 M1993

M1997

PSO1I

Ps 2 Y4 Y5 DR4084 DR4092 DR4076 R4062

R4066 M1994

M1998

PSO2I

Ps 3 Y6 Y7 DR4086 DR4094 DR4078 R4063

R4067 M1995

M1999

PSO3I

Gp 0 Y0 ~ Y7

DR4068*1 D4060

D4062 M1934

Multi-Axis(FUN147)

Gp 1 DR4070*1 D4061

D4063 M1935

U : Up D : DownP : PulseR : DirectionA : Phase AB : Phase B

*MN main units can support up to 920K Hz except A/B output mode, but 460K Hz in maximum at A/B mode.*MC main units can support up to 120K Hz except A/B output mode, but 60K Hz in guarantee at A/B mode.*MA main units can support up to 20K Hz except A/B output mode, but 10K Hz in guarantee at A/B mode.

M1991: ON, stop/pause pulse output with deceleration Off, stop/pause pulse output immediatelyR4056=90, allowed to change output frequency during sending

*1 : Register to show the vector speed

Page 85: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Single axis motion control by FUN140 instructionPulse No.: 0~3

Starting registerto store MotionProgram table

Starting registerfor

Working auxiliary(7 registers)

*Cursor at instruction and press “Z” key for fast popping up the motion program table screen

Motion Program Table

One step of motion(9 registers occupied)

Motion Parameter Table

(24 registers occupied)

*It needs to configure the high speed pulse output for working

1

2

3

4

Page 86: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Extended positioning commands of FUN140 Command

Operand Description

SPD XXXXXX,RXXXX, Dxxxx

Speed setting byConstant value orRegister in pair

DRV ADR $1,$2,$3

ABS , ,$2,$3

Driving settings$1: +,-,space$2: Constant value or Register in pair$3: Ut or Ps

DRVC ADR $1,$2,$3ABS , ,$2,$3

Successive speed changing control

DRVZ MD 0/1/2 Zero return

WAIT Time $4$5

Wait until$4: xxxxx, Rxxxx, Dxxxx$5: X0~X255, Y0~Y255 M0~M1911, S0~S999

ACT Time $4 Pulse output by time

EXT $5 External trigger

GOTO $6 $6: Next,1~N,Rxxx,Dxxxx

MEND End of motion program

Page 87: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Speed setting by DD1000,it means D1001 & D1000

DRV ADR, ,R1000,Ps : Move forward (DR1000 > 0) or backward (DR1000 < 0) by relative coordinate positioningDRV ADR,+,R1002,Ps : Move forward according to the setting of DR1002 by relative coordinate positioningDRV ADR,-,R1004,Ps : Move backward according to the setting of DR1004 by relative coordinate positioning

Command: DRV

*It will be endless movement if the stroke setting value is equal to 0.*Endless forward movement at the speed of DD1006’s setting until X50 is ON

Move to 0 pulse position at 10K Hz speed by absolute coordinate positioning

After completing the pulse output, wait the transfer condition to go to next step

Page 88: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

SPD

Ut

DD1000

DR1000

DD1002

DR1002

DD1004

DR1004

DD1006

DR1006

Command : DRVC

Moving direction is decided by first DRVC commandOnly first DRVC can be absolute coordinate positioning if necessaryThere are 4-speed changing profile of this sample

*It can have 8-speed in maximum for changing

*It should be the end of successive speed changing by DRV command

Page 89: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Command : DRVZMD 0

MD 1

MD 2

These parameters are used by DRVZ

Page 90: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM OutputMulti-axis motion control by FUN147 instruction

Group No.: 0~1

Starting registerto store MotionProgram table

Starting registerfor

Working auxiliary(9 registers)

*Cursor at instruction and press “Z” key for fast popping up the motion program table screen

Motion Program Table

One step of motion(15 registers occupied)

Motion Parameter Table(24 registers occupied/Per

axis)

*It needs to configure the high speed pulse output for working

1

2

3

4

Page 91: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Extended positioning commands of FUN147

Command

Operand Description

SPD XXXXXX,RXXXX, Dxxxx

Vector speed setting byConstant value orRegister in pair

LIN ADR $1,$2,$3,$4,$5ABS $1,$2,$3,$4,$5

Driving stroke settings$1: Stroke of Ps0$2: Stroke of Ps1$3: Stroke of Ps2$4: Stroke of Ps3$5: Ut or PsLINE ADR

$1,$2,$3,$4,$5

WAIT Time, $6$7

Wait until$6: xxxxx, Rxxxx, Dxxxx$7: X0~X255, Y0~Y255 M0~M1911, S0~S999

EXT $7 External trigger

GOTO $8 $8: Next,1~N,Rxxx,Dxxxx

MEND End of motion program

Page 92: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Vector speed setting by DR0, it means R1 & R0

.DR100 : Moving stroke setting of Ps 0

.DR102 : Moving stroke setting of Ps 1

.Both Ps 0 & 1 have the linear interpolation movement at the vector speed (DR0) by relative coordinate positioning

Command: LIN

*LIN supports point to point linear interpolation of motion control

After completing the pulse output, wait the transfer condition to go to next step

.The corresponding axis will be idle if the moving stroke setting is in space or the setting value is equal to 0 while by relative coordinate (ADR).The maximum stroke is ±1999999 Ps for each movement.The moving direction depends on the setting value; setting value > 0 : forward ; setting value < 0 : backward

4-axis has the linear interpolation movement at the vector speed (DR2) by absolute coordinate positioning

Page 93: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Vector speed setting by DR0, it means R1 & R0

.DR100 : Moving stroke setting of Ps 0

.DR102 : Moving stroke setting of Ps 1

.Both Ps 0 & 1 have the endless linear interpolation movement at the vector speed (DR0)

Command: LINE

*Endless linear interpolation movement until X20 is ON

.The corresponding axis will be idle if the moving stroke setting is in space or the setting value is equal to 0 while by relative coordinate (ADR) .The maximum stroke setting is ±1999999 .The moving direction depends on the setting value; setting value > 0 : forward ; setting value < 0 : backward

*LINE is used for endless linear interpolation movement. The stroke setting for each axis means the output ratio between active axes; the axis with longest movement is followed by others. For example, if DR100=1000, DR102=333; it means Ps0 sends 1000 Ps, then PS1 sends 333 Ps respectively

Page 94: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Motion path of Multi-axis pulse output control

Page 95: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

Motion Parameters by FUN141 instruction

Pulse No.: 0~3

Starting registerto store MotionParameter table

Memory mapping for motion parameter table

*Cursor at instruction and press “Z” key for fast popping up the motion parameter table screen

*Each axis can have only one own FUN141 instruction for motion parameter’s setting

*It is the time to change the motion parameters before the execution of FUN140 instruction

Page 96: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

High Speed Pulse & PWM Output

High speed PWM output by FUN139 instruction

Waveform of PWM output

.The setting of resolution (RS) must be same between output 0 (Y0) and output 1 (Y2); also the setting of output frequency (Pn). It means both output 0 and output 1 have the same output frequency and the same output resolution, only the pulse width can be different..Same principle for output 2 (Y4) and output 3 (Y6); it means output 2 and output 3 have the same output frequency and resolution, only the pulse width can be different.

Page 97: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Temperature Measurement & PID Control

Type of thermocouple sensors .J/K/R/S/E/T/B/N Type of RTD sensors

.PT100/PT1000 (JIS or DIN), 3-wire connection

PID temperature control through FUN86 instruction

32-chanel of measurement and control in one system

Page 98: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Temperature Measurement & PID Control

Reading value of measurement

FUN86 instruction for temperature

PID control

Page 99: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

7-segment & 16-segment Display

Type of 7-segment display 0.56”/0.8”/2.3”/4” Type of 16-segment display

0.8”/2.3” Pattern conversion through FUN84

instruction 192 digits of 7-segment/64 characters

of 16-segment in one system

Page 100: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

ROM Pack

ASIC

FLASH ROMSTATIC RAM

withBattery Backup

Status Memory of X/Y/M/S/T/C & Registers…

Working Memory

User Program Memory

CPU Board of main unit

Block 0 (32K Words)Copy of the User Program

Block 1 (32K Words)Copy of X/Y/M/S/T/C

& Registers…

Block 1 (32K Words)Empty

Block 0 (32K Words)Copy of the User Program

Write user program & StatusWrite user program onlyRead user program onlywhile powers upRead user program& data status while powers up

or

*The ROM Pack is used for the backup of user program, user program + partial data, or whole system

1

1

2

3

4

2

3

4

Page 101: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

ROM Pack.ROM Pack is a very convenient solution for the control environment copy of the main unit for mass production of machines; the main unit will load the user program and necessary data if being with from the ROM Pack into the SRAM at every power up if it equips with the ROM Pack & user program. After the loading, the PLC main unit will enter RUN mode automatically.

.It is very useful to make sure the long term maintenance of the machine through the ROM Pack solution; if the main unit malfunctions, it can quick replace the main unit by the new one, and reserve the ROM Pack for working

.It saves time and cost if it needs to modify the user program at remote or overseas sites through the ROM Pack solution. After the modification and testing, write the program into the ROM Pack, and send it to the customer.

Page 102: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

ROM PackWrite program & dataErase ROM PackDisable loading program from ROM Pack (Modification mode)Enable loading program from ROM Pack at every power up (Normal mode)

Write user program only

Write user program & partial data

Write whole system

Loading data from ROM Pack every power up

Loading data from ROM Pack only once at cold start

*The ROM Pack can also work as the data bank through FUN161 & FUN162 instructions for write/read operation. It supports two blocks of data bank; one block consists of 32K words

Page 103: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Text Message through DAP

12

Page 104: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Intellectual Property Protection

Protection

Setting Description

Password No Read/Write/Modify user program without protection

Yes Need to enter the correct password for user program access

Ladder ID

No The user program can be executed between the same model of main unit

Yes

(Lock)

The user program can be executed between the same model of main unit only if the main unit has the matched PLC ID setting; it means it needs to set the correct PLC ID same with the Ladder ID for the main unit before execution

PLC ID

No The PLC main unit can’t execute the user program if it has the Ladder ID setting

Yes (Key)

It doesn’t matter if the user program without the setting of Ladder ID.If the user program with the setting of Ladder ID, while executing this program, the PLC main unit will compare the PLC ID with the Ladder ID, if they are all same, then it can be executed; otherwise there comes the error.

Password :

For user program access protectionLadder ID=PLC

ID : To execute user program protection

Password

+ Ladder ID

+ PLC ID = Full protection of system

Page 105: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Troubleshooting

LED indicators on PLC main unit

Should be ON if powers up

Flickering in 10 Hz if RUNFlickering in 0.25 Hz if STOP

Flickering in 1 Hz if error

Y3 Y2 Y1 Y0 ErrCode

Description

0 0 0 1 1 Function not supported

0 0 1 0 2 Mismatch ofPLC & LAD ID

0 0 1 1 3 User program checksum error

0 1 0 0 4 System stack error

0 1 0 1 5 Watch-Dog error

0 1 1 0 6 Out of main unit I/O

0 1 1 1 7 Syntax check error

1 0 0 0 8 Expansion I/O modules over

1 0 0 1 9 Expansion I/O numbers over

1 0 1 0 10 System flash ROM error

Page 106: By H.N.Wang FBs series Programmable Controller. Contents Application Reference Machine Automation Factory Automation System Application Hardware Integration

Programming SoftwareWinProladder

Ethernet

Modem

RS-232/RS-485/USB

Free Charge Software Support Microsoft 95/98/2000/ NT/ME/XP On-line RUN time Programming Random editing Project oriented development Structured Programming

Environment Status monitor by Reference

No. or by Comment