Altinex CP7317RS 4.11 I/O PORT REGISTERS, 4.11.1. I/O PORT, 4.11.2. I/O PORT, 4.11.3. I/O PORT

Models: CP7317RS

1 16
Download 16 pages 39.35 Kb
Page 15
Image 15
4.11I/O PORT REGISTERS

CONTROLLERS

0800-07 locations for return code for port 1 pin 2 for transition from 0 to 1. This return code should include any

 

necessary brackets.

.

.

.

.

15

end of return code

Default return code is in the following format [Px.yd]

xport number 1, 2, 3, 4

ypin number 1, 2, 3, 4, 5, 6,

7, 8

ddirection U for 0->1 or D for 1->0 transition

4.11I/O PORT REGISTERS

These registers are used to control I/O ports directly. Writing into these registers will affect status of the I/0 ports immediately. Writing 0 into each bit position will set the output of this pin to 0, writing 1 will set output high. If I/O pin is configured as Input pin, then writing into this bit position will not affect output. Keep in mind that default factory setting is that all I/O pins are inputs. Make sure to define pins as outputs before writing into them. Use memory registers to define pins as outputs.

4.11.1. I/O PORT 1

Register number is E Sub-Register number -not used

When writing into this port, any character can be inserted into Sub-register position. The software on the CP7317RS will ignore this information. Also make sure that the pin that you are trying to control is set as output through memory registers.

4.11.2. I/O PORT 2

Register number is F Sub-Register number -not used

When writing into this port, any character can be inserted into Sub-register position. The software on the CP7317RS will ignore this information. Also make sure that the pin that you are trying to control is set as output through memory registers.

4.11.3. I/O PORT 3

Register number is G Sub-Register number -not used

When writing into this port, any character can be inserted into Sub-register position. The software on CP7317RS will ignore this information. Also make sure that the pin that you are trying to control is set as output through memory registers.

4.11.4. I/O PORT 4

Register number is H Sub-Register number -not used

When writing into this port, any character can be inserted into Sub-register position. The software on the CP7317RS will ignore this information. Also make sure that the pin that you are trying to control is set as output through memory registers.

4.12 RELAY PORT REGISTERS

These registers are used to control Relay ports directly. Writing into these registers will affect status of the Relay ports immediately. Writing 0 into each bit position will set the relay open, writing 1 will set the relay closed.

4.12.1. RELAY PORT 1

Register number is I Sub-Register number -not used

When writing into this port, any character can be inserted into Sub-register position. The software on the CP7317RS will ignore this information.

4.12.2. RELAY PORT 2,3,4

Register number is J Sub-Register number -not used

When writing into this port, any character can be inserted into Sub-register position. The software on the CP7317RS will ignore this information.

14

Page 15
Image 15
Altinex CP7317RS manual 4.11 I/O PORT REGISTERS, 4.11.1. I/O PORT, 4.11.2. I/O PORT, 4.11.3. I/O PORT, 4.11.4. I/O PORT