background image

PK2100 Series

Z-World 530-757-3737

10

onds. The programmer reads and writes to virtual registers as
variables
, and does not contend with the hardware details.

Initial PK 2100 Setup

When the 

PK2100

 powers up, it consults its board jumpers, the

keypad if any, and the contents of the 

EEPROM

 to determine its

mode of operation. The modes of operation are the following:

• Run a program stored in battery-backed 

RAM

.

• Prepare for Dynamic C programming at 

19

.

2K

 baud using

the 

RS232

 port (“phone” jack).

• Prepare for Dynamic C programming at 

38

.

4K

 baud using

the 

RS232 

port.

If your controller has a keypad, you can use it to select the op-
eration mode. Hold down the menu/setup key and one other
key simultaneously (field/run, up/pgm 

19

.

2

, or down/pgm 

38

.

4

).

The unit will beep to acknowledge the change of operating
mode. In unusual instances, you might also need to cycle
power while holding the key combination.

If the keypad is not available, or you want to override the key-
pad, use the jumper block 

J4

.

Connecting the PK 2100 to your PC & Dynamic C

1 Connect the red-tagged lead from your 

24V

 (or 

12V

) power-

supply to the +

24V

 screw connector. Connect the other

power supply lead to the 

GND

 screw connector.

2 Plug the serial programming cable into the

 PK2100

 jack and

connect it to a 

PC

 serial port.

3 Plug the 

PK2100

’s power supply into a wall socket. Start Dy-

namic C.

Software Drivers

Z-

W

orld software includes the functions listed here.

Digital Input/Output

• void up_setout( int channel, int value )
• void up_digin( int channel )

Analog Output

• void up_daccal( int value )
• void up_dacout( int rawval )
• void up_expout( int rawval )
• void up_dac420( int current )

Analog Input

• void up_adcal( int channel )
• void up_in

420

()

• void up_adrd( int channel )
• void up_adtest( int channel, int testval )
• void up_uncal( int calval )
• void up_docal( int calval )
• float up_higain( int mode )

High Speed DMA Counter

• void 

DMA0C

ount( uint count )

• void 

DMA1C

ount( uint count )

• uint 

DMAS

napShot( byte channel, uint *counter )

EEPROM Read / Write

• int ee_rd( int address )
• int ee_wr( int address, char data )
• int eei_rd( int address )

Flash EPROM Write

• int WriteFlash( ulong addr, char* buf, int num )

Parts List

Listed are major parts. Resistors, capacitors and other small
parts may be found on the schematic.

B3

Battery, 

3V

560 

m

A

-

H

BZ1

Buzzer

H1

1

x

Header, .

100

H4

1

x

6

 Header, .

100

H5

1

x

8

 Header, .

100

H6

2

x

6

 Header, .

100

H7

1

x

9

 Header, .

100

H8

2

x

3

 Header, .

100

H9

1

x

9

 Header, .

100

H11

2x

1

 Header, .

100

J1

1

x

14

 Header, .

100

J3

1

x

3

 Header, .

100

J4

1

x

8

 Header, .

100

J7

1

x

9

 Header, .

100

J8

2

x

7

 Header, .

100

J9

1

x

3

 Header, .

100

J11

1

x

3

 Header, .

100

JP1

Phone Jack 

RJ12

JP2

Terminal strip 

25

x

JP3

Terminal Strip 

25

x

K1

Keypad flex connecter

P1

2

x

13

 Header for 

PLCB

us

P2

2

x

Header, .

100

SW1

2

x

Header, .

100

U1

EPROM 

and socket, 

32K

U2

SRAM

32K

70

ns

U3

Octal 

3-

state transceiver, 

74HC245

U4

Octal 

3-

state transceiver, 

74HC245

U5

EEPROM

512

24C04

U6

PAL

 (for 

PK2100

)

U7

Dual decoder 

2

:

4

74HC139

U8

Quad 

2

:

1

 mux, 

74HC257

U9

Quad 

2

:

1

 mux, 

74HC257

U10

Watchdog, 

691

U11

Adjustable Reg, 

723

150

m

A

U12

Linear Reg, 

7805

15V

TO

-

220

U13

Switching Reg, 

7662

U14

8

-bit addressable latch, 

74HC259

U15

Real-Time Clock, Toshiba 

8250

U16

Z180

U17

Hex inverter, open drain, 

74HC05

U18

Quad 

2

-in 

OR

74HC32

U19

Quad 

2

-in 

OR

74HC32

U20

Linear Reg, 

7805

5V

TO

-

220

U21

Comparator, 

339

U22

8

-bit 

DAC

Содержание PK2100 Series

Страница 1: ...ominal PK2130 No enclosure LCD or keypad Operates at 12V nominal The following PK2100 Series options are available 9 216 MHz clock upgrade 6 144 MHz standard 128K flash 32K EPROM standard 128K or 512K...

Страница 2: ...versal Inputs A D A D High Gain Input O1 O2 O3 O4 O5 O6 O7 K O8 O9 O10 24V UEXP DAC DAC Output D1 D2 D3 D4 D5 D6 D7 LCD C2B C2B C1 C1 C2 NC1 com1 NO1 Relay1 NC2 com2 NO2 Relay2 Digital Input Counter I...

Страница 3: ...tput A second analog volt age output UEXP normally used by software to drive the universal inputs is available when the universal inputs have a fixed hardware threshold The DACs have 10 bit resolution...

Страница 4: ...oved then the gain of the plus input becomes higher 11 The calibration gain and offsets are stored in the EEPROM The gain when H7 is connected is y a1 x1 a0 b1 x2 1 where a1 is the positive side scale...

Страница 5: ...e DMA channels of the Z180 The maximum counting speed is approximately 600 kHz The DMA channel can be programmed to store a byte from an I O port to memory for each count if desired This byte can be t...

Страница 6: ...ail The Serial Ports The Z180 has two independent full duplex asynchronous serial channels with a separate baud rate generator for each channel The baud rate can be divided down from the microprocesso...

Страница 7: ...EEPROM clock 0x85 0 KEYR3 Keypad drive row 3 Open collector 1 drives low 0x86 0 KEYR1 Keypad drive row 1 Open collector 1 drives low 0x87 0 KEYR4 Keypad drive row 4 Open collector 1 drives low Also te...

Страница 8: ...hms 0x128 4 20 mA load resistor Resistance in units of 1 2 ohm The nominal value is 780 2 counts ohm x 390 ohms This rep resents the combined resistance of the load resistor and the pull down resistor...

Страница 9: ...ted DC input voltage falls below approxi mately 15 6 volts subject to the voltage divider R9 R33 7 8V on 12V systems 2 A system reset is triggered when the regulated 5V supply falls below 4 5 volts Th...

Страница 10: ...ut void up_daccal int value void up_dacout int rawval void up_expout int rawval void up_dac420 int current Analog Input void up_adcal int channel void up_in420 void up_adrd int channel void up_adtest...

Страница 11: ...d to ground 3 4 Connect these positions to enable the termination 5 6 and bias resistors for RS485 communications H9 When installed this connects the on board battery to relay 1 N O contact Use H9 whe...

Страница 12: ...connected to the comparators used for the universal inputs J11 1 2 Connect to enable CTS on the RS232 port 0 2 3 Connect to use the CTS line as a board reset line CTS high will reset the PK2100 board...

Страница 13: ...VCC 5V attention AT 24V strobe STBX GND A3X GND A2X GND A1X RDX 5V VCC D0X WRX D4X D2X D6X 1 2 3 4 5 6 7 8 9 10 KV0 KV1 KV2 KV3 KV4 KV5 KH3 KH1 KH2 KH0 Keypad columns Keypad rows 2 4 1 3 6 5 8 7 10 9...

Отзывы: