Sie sind auf Seite 1von 10

Smart I/O

(BSSA)

MODBUS/TCP

By DSKim www.lsis.biz
BSA-MODBUS/TCP
Name and Function of Each Part
RTC
1) Input data and output data are separated.
2) 2) I/O Addresses are assigned automatically in order of being mounting to the adapter
Memory Module
from Address 0 to 1, 2, 3 and etc.
3) Example of data assignment
Analog Module

Enet Adapter
Extended Module
5 Word
Slot1 :
Read
Input 1 word
READ
Slot3 : DC 16A TN 16A AD04A DV04A
Input 3 word 16 points 16 points 4CH 4CH

WRITE
Write
Slot2 :
Output 1 word 1 Word 1 Word 4 Word 4 Word
5Word
Slot4 :
output 4 word

1/9
BSA-MODBUS/TCP
How to use
RTC
Receiving Data (Slave -> Master) Sending Data (Master -> Slave)

Memory Module Address Data Size Extension Input Module Address data Size Extension Output Module

0 1Word DC Input 32 scores 0 1Word TR Output 32 scores


Analog Module
1 CH0 1 CH 0

2 5Word A/D CH 1 2 5Word D/A CH 1


4Word Conversion 4Word Conversion
3 4CH CH 2 3 4CH CH 2

4 CH 3 4 CH 3

READ 5 Word
Data
B D T A D
WRITE 5Word S C N D V
S 16 16 04 04
A A A A A
WRITE 8Word Parameter
0x40100~0x4017

The extension modules mounted on Smart I/O Enet module are assigned with Word Address of 2-Word
parameter setting area, which starting from 0x100 without distinguishing input modules from output
modules. (When 8 modules are mounted, 0x100~0x10F is assigned)
2/9
BSA-MODBUS/TCP
application in program

1. Set up Smart I/O Enet module parameter


▶ Execute BootpServer
1)IP Address
2) Subnet Mask
3) Gateway Address

1. Read I/O information


▶ Execute XG-PD
1) Basic set-up
2) Set up TCP/IP
3)Set up drivers

2. Write basic parameter

3. Reset individual module

4. Set up P2P
1) Set up communication module
2) Set up P2P channel
3) Set up P2P block (parameter & data )

5. Write P2P parameter

6. Enable link

3/9
BSA-MODBUS/TCP
Execute BootpServer
RTC

Memory Module

Analog Module

4/9
BSA-MODBUS/TCP
Execute XG-PD
RTC

Memory Module Setting IP Address


Setting P2P Parameter
Analog Module

Setting P2P channel

5/9
BSA-MODBUS/TCP
Execute XG-PD
RTC
Setting P2P block
Memory Module

Analog Module

Sending data Receving data Sending parameter data


for setting Analog modules

6/9
BSA-MODBUS/TCP
Execute XG-PD
RTC
Write parameter & Enable Link
Memory Module

Analog Module

7/9
BSA-MODBUS/TCP
Parameter of Analog modules
RTC
XBF-AD04A
address 7 6 5 4 3 2 1 0 meaning
Memory Module
C C C C <channel Enable_low byte>
0 H H H H Bit On(1): run
Analog Module 3 2 1 0 Bit off(0): stop
<Input V/I range designation>
Bit(00): 0~10V
1 CH3 CH2 CH1 CH0
Bit(01): 0~20mA
Bit(10): 4~20mA
<output data range designation>
Bit(00): 0~4000
Bit(01): -2000~2000
2 CH3 CH2 CH1 CH0
Bit(10): standard value (0~1000/40
0~2000/0~2000)
Bit(11): percent value(0~1000)

XBF-DV04A
address 7 6 5 4 3 2 1 0 meaning
C C C C <channel Enable_low byte>
0 H H H H Bit On(1): run
3 2 1 0 Bit off(0): stop
<Voltage range setting>
1 CH3 CH2 CH1 CH0
Bit(00): 0~10V
<input data type setting>
Bit(00): 0~4000
2 CH3 CH2 CH1 CH0 Bit(01): -2000~2000
Bit(10): 0~1000
Bit(11): 0~1000

8/9
BSA-MODBUS/TCP
Sample program
RTC
Program for using remote DI/DO & AI AO
Memory Module Download this program to PLC and check.

Analog Module

9/9

Das könnte Ihnen auch gefallen