Modem Register Command
Original instructions
Introduction
Modem register commands are specified memory area allocated on the CPU. This memory area is used to send commands from CPU to the BMXNOR0200H module via the rack to control the connection or disconnection of the modem using logic functions.
Register Command
The commands are composed of 4 registers (%MW):
Register number
Parameter
Definition
Value
0
Command
Logic function to establish/close a connection.
Disconnect command takes effect if it changes between 2 and 65535.
  • 1: connect
  • 2...65535: disconnect
1
Index
Value in phone list in which are set telephone number, IP, password, and user name - not used for GPRS and PPPoE.
Range from 1...64
2
Command status
Execution status of Reg 0 command while establishing a connection.
  • 0000 hex: idle
  • 0001 hex: on going
  • 0002 hex: OK
  • 8001 hex: detected error - Invalid phone index
  • 8002 hex: detected error - unable to initialize
  • 8003 hex: detected error - unable to dial-out
  • 8004 hex: detected error - unable to make a PPP connection
  • 8005 hex: detected error - unable to hang up (1)
3
Connection status
Status of the connection.
  • 0: closed
  • 1: open
1: 
This feature is available with firmware V1.7 or later.
NOTE: The command register are exchanged via the rack so the performance depends on CPU scan period, the workload of the RTU protocol and the number of BMXNOR0200H modules inserted in the rack.
For PPP/Modem and PPPoE Link, another 4 registers (%MW) following above registers are used to show local IP and remote IP address:
Register number
Parameter
Definition
4/5
Local IP
IP address is stored as MSB.
6/7
Remote IP
IP address is stored as MSB.
For example: %MW100 = 0A0B hex, %MW101= 0C0D hex, which means this IP is "10.11.12.13".
Example for modem register:
Register 3
Register 2
Reg 1
Reg 0
Comment
Case
Connection status
Command status
Index
Command
0
0000 hex
0
0
original
0
0001 hex (on going)
1
1
connect (dial-out)
OK
1
0002 hex (command OK)
1
1
0
0001 hex (on going)
1
1
connect (dial-out)
NOK
0
8001 hex/8002 hex/8003 hex/8004 hex
1
1
1
0001 hex (on going)
1
2
disconnect (hang up)
OK
0
0002 hex (command OK)
1
2
0
0000 hex (idle)
1
2
1
0001 hex (on going)
1
2
disconnect (hang up)
NOK
0
8001 hex/8002 hex
1
2
1
0001 hex (on going)
1
3
disconnect (repeat hang up)
OK
0
0002 hex (command OK)
1
3
0
0000 hex (idle)
1
3
1
0001 hex (on going)
1
3
disconnect (repeat hang)
NOK
0
8001 hex/8002 hex
1
3