Beruflich Dokumente
Kultur Dokumente
(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
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
4. Set up P2P
1) Set up communication module
2) Set up P2P channel
3) Set up P2P block (parameter & data )
6. Enable link
3/9
BSA-MODBUS/TCP
Execute BootpServer
RTC
Memory Module
Analog Module
4/9
BSA-MODBUS/TCP
Execute XG-PD
RTC
5/9
BSA-MODBUS/TCP
Execute XG-PD
RTC
Setting P2P block
Memory Module
Analog Module
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