Beruflich Dokumente
Kultur Dokumente
2005 H2 AE Training
Introduction to Hardware
Specifications
Introduction to Internal File Structure
Introduction to Utility Functions
Introduction to Software Function
Demonstration of Software Function
Integrated Applications
Practice
Q&A
Introduction to Hardware
Specifications
CPU: 80188 microprocessor
Memory:
1.5MB flash memory:
- 256KB system Disk (Drive C: Read Only)
- 256KB flash memory (Accessed by Function LIB)
- 1024KB file system, 960KB for user applications (Drive D:
Read/Write)
640KB SRAM
- up to 384KB with battery backup (Accessed by Function LIB)
Operating System: ROM-DOS (MS-DOS 6.22 Compatible)
Real-time Clock: yes
Watchdog Timer: yes
Introduction to Hardware
Specifications
RS-485
RS-485Port
Portfor
forModbus
Modbus
Devices Versatile
Devices VersatileAI/AO/DI/DO
AI/AO/DI/DO
/Counter
Ethernet Port for Connecting e-World
Ethernet Port for Connecting e-World /CounterModules
Modules
Introduction To Hardware
Specifications
- Supported Module List
5051 Digital Input Module
Digital Input 5051D Digital Input Module
5052 Isolated DI Module
System Initialization.
The Configuration Process of
Utility - Configure ADAM-
5510/TCP
System Initialization function is used for formatting disk D. After format is completed,
it will transfer default system files to disk D. You can also transfer different server utility
to disk D after formatting
Library Functions
System Functions
Communication Functions
Low Speed I/O Module Access Functions
High Speed I/O Module Access Functions
Counter/Frequency Module Access Functions
MODBUS/TCP Server/Client LIB Functions
MODBUS/RTU Master/Slave LIB Functions
Sockets LIB Functions (Winsock Compatible)
HTTP Function LIB for Showing Local Info
Utilities
HTTP & FTP Server
FTP Client
Send Mail
Introduce to the Software
Function - FTP server
FTP is the protocol for file transfer. You can only keep the continual ”FTPD.
exe” process by using the System Installation.
Step 1: Execute ”ADAM-5510/TCP Configuration” utility and set up system IP
Address
Introduce to the Software
Function - FTP server
Step 2: Configure the User ID , Password and Access Right for
FTP/HTTP protocol
Note: FTP and HTTP accounts should be set up at the same time
Introduce to the Software
Function - FTP server
Step 3: Restart ADAM-5510 TCP after the configuration is done. You can
check your IP setting by monitoring the console windows of Utility.
Introduce to the Software
Function - FTP server
Step 4: Transfer the FTPD.exe from Host PC to the location
“D:\WEBROOT\” of ADAM-5510/TCP
Introduce to the Software
Function - FTP server
Step 5: Execute FTPD /r under D:\WEBROOT\ in console mode. Then,
the FTP server will be in “going resident” mode
Ethernet
5510
HTML CGI
LIB
User/IE browser
HTTP Server
Introduce to the Software
Function - Http Server
Step 1: Upload the HTTPD. exe to ADAM-5510/TCP thru utility
Introduce to the Software
Function - Http Server
Step 2: Execute HTTPD.EXE to keep the files running from the HTTP
Server to system
SCADA
Modbus Server Modbus Client
RS-485
Introduce to the Software
Function - Modbus RTU
We also provide the related demo program for testing, and will
introduce details for each of them in the following slides
Introduce to the Software
Function - Modbus RTU
01:
bool ADAMRTU_ReadCoilStatus(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
02:
bool ADAMRTU_ReadInputStatus(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
Introduce to the Software
Function - Modbus RTU
03:
bool ADAMRTU_ReadHoldingRegs(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
04:
bool ADAMRTU_ReadInputRegs(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
Introduce to the Software
Function - Modbus RTU
05:
bool ADAMRTU_ForceSingleCoil(
int iPort,
int i_iAddr,
int i_iCoilIndex,
int i_iData
);
06:
bool ADAMRTU_PresetSingleReg(
int iPort,
int i_iAddr,
int i_iRegIndex,
int i_iData
);
Introduce to the Software
Function - Modbus RTU
0F:
bool ADAMRTU_ForceMultiCoils(
int iPort,
int Slave_Addr,
int CoilIndex,
int TotalPoint,
int TotalByte,
unsigned char szData[]
);
10:
bool ADAMRTU_PresetMultiRegs(
int iPort,
int i_iAddr,
int i_iStartReg,
int i_iTotalReg,
int i_iTotalByte,
unsigned char i_szData[]
);
Introduce to the Software
Function - Modbus RTU
z Initial Modbus Port:
int Modbus_COM_Init(
int Port,
int iMode,
unsigned long iBaud,
int iParity,
int iFormat,
int iStopBits
);
z Error Check:
int Error_Code(void);
Introduce to the Software
Function - Modbus RTU
Modbus Server:
z void ADAMRTU_ModServer_Create(
int slave_addr,
unsigned char * ptr_mem,
unsigned int size_of_mem
);
Introduce to the Software
Function - Modbus RTU
Aside from default settings, COM port can get data from Modbus
Server. We can also get Modbus Server data thru ADAM-5090 to
increase system integration ability
The limitation for ADAM-5090 is that ADAM-5090 can only be a
Modbus client and can't be a Modbus Server
RS-232
ADAM-4520 ADAM-4055
ADAM-5090 RS-485
Introduce to the Software
Function - Modbus RTU
01:
bool A5090_RTU_ReadCoilStatus(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
02:
bool A5090_RTU_ReadInputStatus(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
Introduce to the Software
Function - Modbus RTU
03:
bool A5090_RTU_ReadHoldingRegs(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
04:
bool A5090_RTU_ReadInputRegs(
int iPort,
int i_iAddr,
int i_iStartIndex,
int i_iTotalPoint,
int *o_iTotalByte,
unsigned char o_szData[]
);
Introduce to the Software
Function - Modbus RTU
05:
bool A5090_RTU_ForceSingleCoil(
int iPort,
int i_iAddr,
int i_iCoilIndex,
int i_iData
);
06:
bool A5090_RTU_PresetSingleReg(
int iPort,
int i_iAddr,
int i_iRegIndex,
int i_iData
);
Introduce to the Software
Function - Modbus RTU
0F:
bool A5090_RTU_ForceMultiCoils(
int iPort,
int Slave_Addr,
int CoilIndex,
int TotalPoint,
int TotalByte,
unsigned char szData[]
);
10:
bool A5090_RTU_PresetMultiRegs(
int iPort,
int i_iAddr,
int i_iStartReg,
int i_iTotalReg,
int i_iTotalByte,
unsigned char i_szData[]
);
Introduce to the Software
Function - Modbus RTU
z Initial Modbus Port:
int Modbus_5090_Init(
int Port,
unsigned long iBaud,
int iParity,
int iFormat,
int iStopBits
);
z Error Check:
int Error_Code(void);
Introduce to the Software
Function - Modbus TCP
SCADA/Modbus Client
HUB ADAM-6000
Modbus Server
Introduce to the Software
Function - Modbus TCP
MODBUS TCP CLIENT:
01:
int ADAMTCP_ReadCoilStatus( SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int StartIndex,
int TotalPoint,
int * ByteCount,
char * wData
);
02:
int ADAMTCP_ReadInputStatus( SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int StartIndex,
int TotalPoint,
int * ByteCount,
char * wData
);
Introduce to the Software
Function - Modbus TCP
03:
int ADAMTCP_ReadHoldingRegs( SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int StartIndex,
int TotalPoint,
int * ByteCount,
char * wData
);
04:
int ADAMTCP_ReadInputRegs( SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int StartIndex,
int TotalPoint,
int * ByteCount,
char * wData
);
Introduce to the Software
Function - Modbus TCP
05:
int ADAMTCP_ForceSingleCoil(
SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int CoilIndex,
int Data
);
06:
int ADAMTCP_PresetSingleReg(
SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int RegIndex,
int Data
);
Introduce to the Software
Function - Modbus TCP
0F: int ADAMTCP_ForceMultiCoils( SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int CoilIndex,
int TotalPoint,
int TotalByte,
unsigned char szData[]
);
10: int ADAMTCP_PresetMultiRegs( SOCKET * SO,
int WaitMilliSec,
int Slave_Addr,
int StartReg,
int TotalReg,
int TotalByte,
unsigned char Data[]
);
Introduce to the Software
Function - Modbus TCP
z MODBUS TCP Client connect:
int ADAMTCP_Connect(
SOCKET * SO,
char * Target_IP,
int Target_Port
);
z TCP/IP Disconnect:
z Error Check:
int ReturnErr_code(void);
Introduce to the Software
Function - Modbus TCP
z Server Create:
int ADAMTCP_ModServer_Create(
int Host_Port,
unsigned long waittimeout,
unsigned int numberConns,
unsigned char * ptr_mem,
int size_mem
);
z Server Update:
int ADAMTCP_ModServer_Update(void);
z Server Release:
void ADAMTCP_ModServer_Release(void);
Introduce to the Software
Function - Modbus TCP
Here is an example program for combining the Modbus TCP
Utility shows that
Server with Modbus TCP Client. ADAM-5510 TCP gets
6024
data from Modbus
Server (ADAM6000)
SCADA
SYSTEM
TCP/IP
Alarm!!
Introduce to the Software
Function - Socket