1 ip c onnect module – simple user instructions 2

1 IP CONNECT MODULE – SIMPLE USER INSTRUCTIONS
1.1 Background_________________________________________________
1.1.1 Module Connection and Addressing _________________________
1.2 Setting UP Simple HTTP Web Server ____________________________
1.3 Setting UP RS232 / RS485 Serial Port____________________________
1.3.1 Port Configuration _______________________________________
1.3.2 Communications Protocol _________________________________
1.3.3 Module Unified Address ___________________________________
1.3.4 RS485 Operation ________________________________________
1.3.5 Some Useful Commands __________________________________
1.3.6 Module Status Register ___________________________________
1.4 IP CONNECT USB to PC Communications ________________________
1.4.1 USB Class, Vendor and Product ____________________________
1.4.2 Connection and Driver Setup _______________________________
1.4.3 Communications Protocol _________________________________
2 APPENDICES
2.1 Register Mappings Screen Modules _____________________________
2.1.1 Btimapped Registers 74 & 75 ______________________________
2.1.2 DIAGNOSTICS Registers 32 to 63 __________________________
2.1.3 STATUS Register 32 _____________________________________
2.2 Register Mappings D1322_13 IP Connect Module___________________
The IP CONNECT Module is a versatile communications interface which allows a PC to inter-work
with the Connect Network System of Screen controllers.
This document provides simplified instructions on how to connect the IP CONNECT module, and
basic usage of the module.
For more detailed information consult the document “D1322_User_Manal_Ver_1_9.doc”
1.1 BACKGROUND
The IP CONNECT module connects into the Connect Network in the same way as the other modules,
and works with the same addressing scheme.
The module can interface with a host PC or controller in a number of ways:(a) Serial RS232
(b) Serial RS485
(c) USB
(d) TCP/IP
The module communicates over the serial ports and USB using a simple ASCII protocol.
The TCP/IP connection provides a simple HTTP Web Server or can use the Control Port with a
Telnet type of application and the same ASCII protocol as for the serial ports
Separate ports on the USB and TCP/IP can be linked through to the RS232 port.
Data is transmitted transparently between the linked ports.
The following ports and connections are available:
Interface
Connector
Port
Connections
CONNECT RJ12
IN
1
CONNECT RJ12
OUT
1
RS232 Link
Thru
Control Port
Y
Y
RS232
Screw Term
1
RS485
Screw Term
1
Y
USB
USB-B
D132213_A
1
Y
D132213_B
1
80
3
Y
TCP/IP
3002
3
Y
TCP/IP
3001
1
HTTP
RJ45
Y
Y
Y
Y
Module Connection and Addressing
The IP module is connected to the Connect Network using the 6wire RJ12 cables.
The modules are connected as a daisy chain from each module’s OUT socket to the next module’s IN
socket. EG:-
MODULE
A
IN
OU
T
MODULE
B
IN
OU
T
MODULE C
IN
OU
T
IP CONNECT
MODULE
IN
OU
T
Each module has 2 addresses:
(1) Relative (MAF) address – In the example above
IP Connect Module – Always starts with MAF = 1
MODULE A MAF = 2
MODULE B MAF = 3
MODULE C MAF = 4
(2) Module ID – this address is assigned by programming the Module ID Register
Module ID can also be programmed using special ‘Quick Configure’ commands.
Module Addresses are always in the range 1 to 9
1.2 SETTING UP SIMPLE HTTP WEB SERVER
The IP CONNECT module can be connected to a Local Area Network (LAN) and the HTTP on port
80 can be accessed by a standard Web Browser such as Windows Internet Explorer.
The simple web browser allows a user to view and change the module configurations and also to
perform some control functions with status updates.
The following steps should allow connection to the HTTP web server from a PC
STEP 1. Connect the RJ45 port to from the IP CONNECT module to the LAN port of the PC
STEP 2. Power-up the IP CONNECT Module.
Note – if the IP address or subnet mask have been changed in the module then should powerup with the small switch on side of the module depress and then release after a few seconds .
This will set the module IP address and subnet mask back to the following factory defaults:
DEFAULT IP ADDRESS = 192.168.1.253
DEFAULT SUBNET MASK = 255.255.255.0
DEAFULT GATEWAY = 192.168.1.1
STEP 2A . Change Network Settings in the PC
The PC Network Settings must match the IP address
(first 3 numbers) and subnet mask of the IP
CONNECT module.
The last number (eg IP address ’34’ in the example
below must be different)
This is done in Windows NT by opening the “Control
Panel \ Network Connections”.
Then select the” LAN Connection” and Right Click to
view “Properties”.
Then select “Internet Protocol (TCP/IP)” and view
“Properties”
The following Window should appear.
Make a note of the values as these will need to be
changed
Change the IP Address and Subnet Mask as shown
Once the changes are made select OK to save it.
STEP 2B –An ALTERNATIVE to changing the Network Settings in the PC is to change the
Network settings in the IP CONNECT module to match those of the PC & Local Area
network.
Using the procedure in STEP 2B to view the TCP/IP properties on the PC.
Make a note of the IP Address and Subnet Mask.
Connect a PC to the RS232 Serial Port or USB (see procedures in next section 1.4).
Then using the Register Set command to change the IP Address (Registers 68 and 69) and
Subnet Mask (Registers 70, 71) to the required values.
Note the 4 byte address is converted to the 2 integer address as follows:If the 4 Byte IP address is AAA.BBB.CCC.DDD
Then for the CONNECT IP module registers values are set to
Register 68 – IP Address (H) = AAA x 256 + BBB
Register 69 – IP Address (L) = CCC x 256 + DDD
The subnet mask determines which bits of the IP Address should be matching for the
devices to be able to communicate. For small networks it is normally set to
“255.255.255.0”
This means that the first 4 numbers of the IP Address need to be matching, and the last
one should be unique.
STEP 3. Run the Web Browser – eg Windows Internet Explorer
Type the IP Address for the IP CONNECT module into the browser’s address bar at the top
LHS of the Window.
Note : The IP Address should be written for example as “http://192.168.1.253”
The following Opening screen should then be shown.
STEP 4. Enter the User Name and Password
The factory Defaults are:
User Name:
Password:
Admin
Connect
If the Username or password has been changed and forgotten, the IP CONNECT module can
be returned to the Factory defaults by powering-up with the side Push-button pressed.
Once the Username / Password are successfully entered then the main menu screen will be
shown.
1.3 SETTING UP RS232 / RS485 SERIAL PORT
1.3.1 PORT CONFIGURATION
The Default settings are :Baud Rate
9600
Bits
8
Parity
None
Stop
1
Flow Control None / Hardware
Note – baud rate may be changed in the configuration registers
1.3.2 COMMUNICATIONS PROTOCOL
The Serial Protocol is an ASCII text based protocol which can be accessed by a user using “Windows
Hyperterm” or it can be interfaced to an automated controller
Note – the default setting is for character echo to be switched off.
This may be switched on by sending the command “062 0 3781 <Enter>”
Responses are returned with the Command number incremented by +100.
The second field returns a response code, with the status of the response:Response
Code
1
2
3
4
5
6
7
8
STATUS
Data Valid/Action Completed OK/LEFT PORT
Data Valid / More Data to Come/LEFT PORT
Data Valid/ Buffer is Full /LEFT PORT
Address Error
Address Error
IP Module is Busy
No Module Response
Bad Value
1.3.3 MODULE UNIFIED ADDRESS
Commands for a particular module require a module address which can be represented in 2 ways:
(1) As the Module ID (1 to 9) assigned by programming.
(2) As the Relative or MAF address (1 to 9) +16
Eg MAF address 3 becomes Unified Address 3 + 16 = 19.
1.3.4 RS485 OPERATION
The module sits in Receive mode and when it Receives a command it switches to TX to send the
response and then back to receive. When it switches from RX to TX allow 50ms for slow PC
applications.
1.3.5 SOME USEFUL COMMANDS
COMMAND
DESCRIPTION
COMMAND
NUMBER
READ REGISTER
1
WRITE REGISTER
2
OPERATE IR
GROUP UP
OPERATE IR
GROUP DOWN
OPERATE
MODULE DIRECT
UP
OPERATE
MODULE DIRECT
DOWN
GET MODULE
STATUS
20
VALUE1
VALUE2
30
ADDRESS REGISTERE
NUMBER
ADDRESS REGISTER
NUMBER
IR
GROUP
IR
GROUP
ADDRESS
33
ADDRESS
23
VALUE3
VALUE
50
1.3.6 MODULE STATUS REGISTER
The Module Status register returns the current state of each module.
This can show if a module is moving up or down or is stopped at top or bottom
When modules are operated, they will transmit a change in their status.
The IP CONNECT module receives these status values and stores them in a buffer.
This buffer can be Polled (Command 50) regularly to provide a “live” indication of the
module activity.
MODULE
STATUS
0
1
6
7
10
11
ACTION
Moving top
Moving bot
At TOP
At BOTTOM
Stopped manual
Error
1.4 IP CONNECT USB TO PC COMMUNICATIONS
1.4.1 USB CLASS, VENDOR AND PRODUCT
The IP CONNECT module (D132217) is supplied with
Vendor ID
0x1150
Product ID
8&9
Serial Number
Always “00000000”
Driver Representation
USB\VID_1150&PID_0007
The Vendor ID 0X1150 is owned by Don Alan Pty Ltd is made available for use on this product on
this instance for this product as it stands. No further right to this vendor ID is provided.
The module implements CDC class which means it will appear as a com port on the PC. Although
the PC may allow com port parameters such as baud rate to be set they have no effect.
1.4.2 CONNECTION AND DRIVER SETUP
For use on most operating systems there is no ‘driver’ as such as the CDC class licence for the
operating system will be invoked. A usbser.inf file is provided that allows easy connection to
Microsoft Windows 2000 and later systems.
When the USB cable is plugged into the PC, the user will be prompted to install the device
information (.inf) file. Select the option “Search Specific location” and point it to the folder where
the
“usbser.inf” file is located.
Two virtual COMM Ports are created, and so the driver installation will prompt for the .inf file to be
installed twice.
Port D132213_A – uses the command interpreter
Port D132213_B – uses the command interpreter
This port can also be set for direct link through to the RS232 Port
Once the driver is installed a user can access the virtual COMM port using Hyperterm or similar
console application.
1.4.3 COMMUNICATIONS PROTOCOL
This serial command protocol is essentially the same as for the other Serial RS232 and RS485 ports.
Refer Section 1.4 for further details.
2 APPENDICES
2.1 REGISTER MAPPINGS SCREEN MODULES
Register No.
SPECIAL
0
READ ONLY
DEC
HEX
1
01
2
02
3
03
4
04
5
05
6..7
06 .. 07
8 . . 15
08 .. 0F
16 . . 31
DIAGNOSTICS
DEC
HEX
32
20
33
21
34
35
36
37
22
23
24
25
38
26
39
27
40
28
41
29
42
43
44
45
46
46..63
2A
2B
2C
2D
2E
2C..3F
Registers Supported
Description
D13221
D13225
D13226
D132217
Special Register
Y
Y
Y
Y
S/W Version
Hardware Version
Batch Number
Serial Number
Module Type
Spare
Bit map of
supported registers
Spare
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
STATUS – See
Table 2.1.3
COMMANDS –
See Table Error!
Reference source
not found.
Left Packet Errors
Right Packet Errors
Motor Operates Up
Motor Operates
Down
Motor Operate
Time (Minutes)
Motor Current –
Max
Motor Current –
Ave
Number of PowerRestarts
Poweron Secs- Lo
Poweron Secs -Hi
Failures – timeout
Failures - current
Process_State
Spare
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
PROGRAMMING EEROM
DEC
HEX
64
40
65.
66 .
67
68
69
70
71
72
41
42
43
44
45
46
47
48
73
49
74
4A
75
4B
76
77
78
79
4C
4D
4E
4F
80
50
81
51
82
52
83
53
84
54
83..127
53 .. 7F
Magic 1 (Fixed
43981)
Operation PIN
Programming PIN
Partial Pos 1 – Lo
Partial Pos 1 – Hi
Partial Pos 2 – Lo
Partial Pos 2 – Hi
SWITCH MODE
Partial 1 Open
Mode
Partial 2 Open
Mode
SWITCH GROUP
Bitmapped
Register See below
IR GROUP
Bitmapped
Register See below
Timer Up
Timer Down
MODULE_ID
Motor Current Trip
Threshold
Motor Run
Timeout
Diagnostics Log
Time
Time_delay_up
(100mS)
Time_delay_down
(100mS)
Magic 2 (fixed
47637)
Spare
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
2.1.1 BITMAPPED REGISTERS 74 & 75
The group is selected by setting the respective binary bit.
The number is then the decimal conversion of the binary number
Bit
B8
B8
N0
Group GRP9 GRP8
Value 512
256
B7
B6
B5
B4
B3
B2
B1
B0
GRP7
128
GRP6
64
GRP5
32
GRP4
16
GRP3
8
GRP2
4
GRP1
2
0
0
Alternatively, simply add the table values assigned to the required groups
2.1.2 DIAGNOSTICS REGISTERS 32 TO 63
These registers provide important diagnostic information about the current state of the module, the
operating conditions and various fault conditions.
The Diagnostics Registers are saved to EEPROM every 3600 seconds (1 Hour).
This period may be changed with Register 0x51.
2.1.3 STATUS REGISTER 32
The STATUS register is special in that it is used for feeding back response information to the
Connect IP module.
Response
Type No
MODULE FUNCTION
D13221
D13225
0
1
2
3
4
5
6
7
8
9
10
Moving top
Moving bot
Moving PP1
Moving PP2
Moving PPT
Moving PPB
At TOP
At BOTTOM
At PP1
At PP2
Stopped manual
11
12
13
14
15
16
Error
Moving top
Moving bot
Moving PP1
Moving PP2
Moving PPT
Moving PPB
At TOP
At BOTTOM
At PP1
At PP2
Stopped
manual
Error
Fail-timeout
Fail – current
Rattle
At PPB
Fail-timeout
Fail – current
Rattle
At PPB
D13226
D132217
OK
Moving top
Moving bot
Moving PP1
Moving PP2
Moving PPT
Moving PPB
At TOP
At BOTTOM
At PP1
At PP2
Stopped
manual
Error
Error
Fail-timeout
Fail – current
Rattle
At PPB
2.2 REGISTER MAPPINGS D1322_13 IP CONNECT MODULE
Register No.
SPECIAL
0
Special Register
READ ONLY
1
2
3
4
5
6.7
8..15
16 .. 31
S/W Version
Hardware Version
Batch Number
Serial Number
Module Type
Spare
Bit map of supported registers
Spare
DIAGNOSTICS
32
33
34
35
36..40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
Description
Status
COMMAND – Future
Left Packet Errors
Right Packet Errors
Spare
Buffer – IP CONNECT Module ID
(MAF=2)
Buffer – Module ID MAF=2
Buffer – Module ID MAF=3
Buffer – Module ID MAF=4
Buffer – Module ID MAF=5
Buffer – Module ID MAF=6
Buffer – Module ID MAF=7
Buffer – Module ID MAF=8
Buffer – Module ID MAF=9
Spare
Buffer – IP MODULE STATUS
(MAF=1)
Buffer – Module STATUS
MAF=2
Buffer – Module STATUS
MAF=3
Buffer – Module STATUS
MAF=4
Buffer – Module STATUS
MAF=5
Buffer – Module STATUS
MAF=6
Buffer – Module STATUS
MAF=7
58
59
Buffer – Module STATUS
MAF=8
Buffer – Module STATUS
MAF=9
60 ..63
PROGRAMMING EEROM
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81 .. 127
RS232 Baud Rate /10
RS232 bitmapped options
B0 Echo on
B1 Handshake
B2 1=7 or 0=8 bits
B3 0=1 Stop bit 1=2 Stop Bits
RS485 Baud Rate /10
RS485 bitmapped options
B0
B1
B2 1=7 or 0=8 bits
B3 0=1 Stop bit 1=2 Stop Bits
IP Address (H)
IP Address (L)
Subnet mask (H)
Subnet mask (L)
Gateway (H)
Gateway (L)
MAC Address (H)
MAC Address (M)
MAC Address (L)
Diagnostics Log Time (Seconds)
Module ID
Buffer Refresh Rate (Seconds)
Bitmapped Options
B0 AMX Discoverable Enabled
B1 RS232 Linked to TCP/IP
B2 RS232 Linked to USB
Spare
Spare
MODULE ID BUFFER and MODULE STATUS BUFFER Registers are special registers used to
store quick lookup of particular module information.
Download PDF