CPKSoft Engineering

XIDECM3.tlk Driver Reference

Idec Izumi Micro3 Programmable Controller Protocol Driver

This driver requires that you have TAS-HMITalk 8.04 installed.

Driver Overview

XIDECM3 driver was designed to support the IDEC IZUMI MICRO3

controllers.

 

Serial communication is RS-485 at the PLC side. You can use a

RS232C/RS485 Converter HD9Z-T11 to convert electrical signals

between RS-232C and RS-485 to communicate with a computer

using a RS-232 port.

 

Communication is half-duplex, being the PC always the master and

the PLC always behave as a slave in the RS-485 network.

 

This driver supports both types of end codes for messages. Terminator

can be CR (default for the PLC) or CR+LF. The terminator can be

selected using F10+F3+FUN8 in the Micro3 configuration software (CUBIC).

 

Communication parameters can be:

 

- Baudrate = 1200, 2400, 4800, 9600 (default), 19200 bauds.

- Start bits = 1

- Data bit = 7 (default), 8

- Stop bit = 1 (default), 2

 

If you are communicating with a RS-485 network in 1:N communication

computer link system, it is suggested that you configure your driver

to raise the RTS signal while transmitting and lower it while receiving.

 

If you are commnicating in 1:1 communication, it is suggested that you

keep the RTS signal raised during the whole communication.

Supported Equipment Type

Programmable Logic Controllers

Supported Devices List

IDEC IZUMI MICRO3 Micro Controllers

Supported Commands List

Read Input Status (X)

Read Output Status (Y)

Read Internal Relays Status (M)

Read Shift Registers Status (R)

Read Timer Preset Values (T)

Read Timer Current Values (t)

Read Counter Preset Values (C)

Read Counter Current Values (c)

Read Data Register Values (W)

Read Calendar/Clock

Write Output Status (Y)

Write Internal Relays Status (M)

Write Shift Registers Status (R)

Write Timer Preset Values (T)

Write Counter Preset Values (C)

Write Data Register Values (W)

Write Calendar/Clock

Read Input Status (X)

COMMAND DESCRIPTION:

This command is used to read the current status

of binary inputs.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Input

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 88

HMITalk1.DriverP2 = Indicates the first input to be read (0-37).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

NOTE:

When indicating the first address to be read in the

P2 parameter, the least significant digit must be

a number between 0 and 7 since it is indicating a

bit offset as an octal number.

 

RETURNS:

- HMITalk1.PointValue(0) = First binary input status (X) requested

- HMITalk1.PointValue(1) = Second binary input status (X) requested

...

- HMITalk1.PointValue(NumValues-1) = Last binary input status (X) requested

Read Output Status (Y)

COMMAND DESCRIPTION:

This command is used to read the current status

of binary outputs.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Input

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 89

HMITalk1.DriverP2 = Indicates the first output to be read (0-37).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

NOTE:

When indicating the first address to be read in the

P2 parameter, the least significant digit must be

a number between 0 and 7 since it is indicating a

bit offset as an octal number.

 

RETURNS:

- HMITalk1.PointValue(0) = First binary output status (Y) requested

- HMITalk1.PointValue(1) = Second binary output status (Y) requested

...

- HMITalk1.PointValue(NumValues-1) = Last binary output status (Y) requested

Read Internal Relays Status (M)

COMMAND DESCRIPTION:

This command is used to read the current status

of internal relays.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Input

HMITalk1.DriverNumPoints = 1-248

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 77

HMITalk1.DriverP2 = Indicates the first internal relay to be read (0-317).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

NOTE:

When indicating the first address to be read in the

P2 parameter, the least significant digit must be

a number between 0 and 7 since it is indicating a

bit offset as an octal number.

 

RETURNS:

- HMITalk1.PointValue(0) = First internal relay status (M) requested

- HMITalk1.PointValue(1) = Second internal relay status (M) requested

...

- HMITalk1.PointValue(NumValues-1) = Last internal relay status (M) requested

Read Shift Registers Status (R)

COMMAND DESCRIPTION:

This command is used to read the current status

of shift registers.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Input

HMITalk1.DriverNumPoints = 1-43

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 82

HMITalk1.DriverP2 = Indicates the first shift register to be read (0-63).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

NOTE:

When indicating the first address to be read in the

P2 parameter, the least significant digit must be

a number between 0 and 7 since it is indicating a

bit offset as an octal number.

 

RETURNS:

- HMITalk1.PointValue(0) = First shift register status (R) requested

- HMITalk1.PointValue(1) = Second shift register status (R) requested

...

- HMITalk1.PointValue(NumValues-1) = Last shift register status (R) requested

Read Timer Preset Values (T)

COMMAND DESCRIPTION:

This command is used to read the current values

of timer presets.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Input

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 84

HMITalk1.DriverP2 = Indicates the first timer preset value to be read (0-31).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

RETURNS:

- HMITalk1.PointValue(0) = First timer preset value (T) requested

- HMITalk1.PointValue(1) = Second timer preset value (T) requested

...

- HMITalk1.PointValue(NumValues-1) = Last timer preset value (T) requested

Read Timer Current Values (t)

COMMAND DESCRIPTION:

This command is used to read the current values

of timers.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Input

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 116

HMITalk1.DriverP2 = Indicates the first timer value to be read (0-31).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

RETURNS:

- HMITalk1.PointValue(0) = First timer current value (t) requested

- HMITalk1.PointValue(1) = Second timer current value (t) requested

...

- HMITalk1.PointValue(NumValues-1) = Last timer current value (t) requested

Read Counter Preset Values (C)

COMMAND DESCRIPTION:

This command is used to read the current values

of counter presets.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Input

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 67

HMITalk1.DriverP2 = Indicates the first counter preset value to be read (0-31).

 

RETURNS:

- HMITalk1.PointValue(0) = First counter preset value (C) requested

- HMITalk1.PointValue(1) = Second counter preset value (C) requested

...

- HMITalk1.PointValue(NumValues-1) = Last counter preset value (C) requested

Read Counter Current Values (c)

COMMAND DESCRIPTION:

This command is used to read the current values

of counters.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Input

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 99

HMITalk1.DriverP2 = Indicates the first counter current value to be read (0-31).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

RETURNS:

- HMITalk1.PointValue(0) = First counter current value (c) requested

- HMITalk1.PointValue(1) = Second counter current value (c) requested

...

- HMITalk1.PointValue(NumValues-1) = Last counter current value (c) requested

Read Data Register Values (W)

COMMAND DESCRIPTION:

This command is used to read the current values

of data registers.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Input

HMITalk1.DriverNumPoints = 1-100

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 68

HMITalk1.DriverP2 = Indicates the first data register to be read (0-99).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

RETURNS:

- HMITalk1.PointValue(0) = First data register value (W) requested

- HMITalk1.PointValue(1) = Second data register value (W) requested

...

- HMITalk1.PointValue(NumValues-1) = Last data register value (W) requested

Read Calendar/Clock

COMMAND DESCRIPTION:

This command is used to read the calendar/clock

information.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Input

HMITalk1.DriverNumPoints = 1-7

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 87

HMITalk1.DriverP2 = 0

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

RETURNS:

- HMITalk1.PointValue(0) = Year

- HMITalk1.PointValue(1) = Month

- HMITalk1.PointValue(2) = Day

- HMITalk1.PointValue(3) = Day of Week

- HMITalk1.PointValue(4) = Hour

- HMITalk1.PointValue(5) = Minute

- HMITalk1.PointValue(6) = Second

Write Output Status (Y)

COMMAND DESCRIPTION:

This command is used to modify the current status

of binary outputs.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Output

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 89

HMITalk1.DriverP2 = Indicates the first output to be modified (0-37).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

NOTE:

When indicating the first address to be modified

in the HMITalk1.DriverP2 parameter, the least significant digit

must be a number between 0 and 7 since it is

indicating a bit offset as an octal number.

When 2 or more bits are modified, all the other

bits belonging to the same byte will be affected.

When only one bit at a time is modified, a special

command is used to avoid affecting other bits.

 

WHERE:

- HMITalk1.PointValue(0) = First binary output status (Y) to be written

- HMITalk1.PointValue(1) = Second binary output status (Y) to be written

...

- HMITalk1.PointValue(NumValues-1) = Last binary output status (Y) to be written

Write Internal Relays Status (M)

COMMAND DESCRIPTION:

This command is used to modify the current status

of internal relays.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Output

HMITalk1.DriverNumPoints = 1-248

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 77

HMITalk1.DriverP2 = Indicates the first internal relay to be modified (0-317).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

NOTE:

When indicating the first address to be modified

in the HMITalk1.DriverP2 parameter, the least significant digit

must be a number between 0 and 7 since it is

indicating a bit offset as an octal number.

When 2 or more bits are modified, all the other

bits belonging to the same byte will be affected.

When only one bit at a time is modified, a special

command is used to avoid affecting other bits.

 

WHERE:

- HMITalk1.PointValue(0) = First relay status status (M) to be written

- HMITalk1.PointValue(1) = Second relay status status (M) to be written

...

- HMITalk1.PointValue(NumValues-1) = Last relay status status (M) to be written

Write Shift Registers Status (R)

COMMAND DESCRIPTION:

This command is used to modify the current status

of shift registers.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Output

HMITalk1.DriverNumPoints = 1-43

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 82

HMITalk1.DriverP2 = Indicates the first shift register to be modified (0-63).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

NOTE:

When indicating the first address to be modified

in the HMITalk1.DriverP2 parameter, the least significant digit

must be a number between 0 and 7 since it is

indicating a bit offset as an octal number.

When 2 or more bits are modified, all the other

bits belonging to the same byte will be affected.

When only one bit at a time is modified, a special

command is used to avoid affecting other bits.

 

WHERE:

- HMITalk1.PointValue(0) = First shift register status (R) to be written

- HMITalk1.PointValue(1) = Second shift register status (R) to be written

...

- HMITalk1.PointValue(NumValues-1) = Last shift register status (R) to be written

Write Timer Preset Values (T)

COMMAND DESCRIPTION:

This command is used to modify the current values

of timer presets.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Output

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 84

HMITalk1.DriverP2 = Indicates the first timer preset value to be modified (0-31).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

WHERE:

- HMITalk1.PointValue(0) = First timer preset value (T) to be written

- HMITalk1.PointValue(1) = Second timer preset value (T) to be written

...

- HMITalk1.PointValue(NumValues-1) = Last timer preset value (T) to be written

Write Counter Preset Values (C)

COMMAND DESCRIPTION:

This command is used to modify the current values

of counter presets.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Output

HMITalk1.DriverNumPoints = 1-32

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 67

HMITalk1.DriverP2 = Indicates the first counter preset value to be modified (0-31).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

WHERE:

- HMITalk1.PointValue(0) = First counter preset value (C) to be written

- HMITalk1.PointValue(1) = Second counter preset value (C) to be written

...

- HMITalk1.PointValue(NumValues-1) = Last counter preset value (C) to be written

Write Data Register Values (W)

COMMAND DESCRIPTION:

This command is used to modify the current values

of data registers.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Output

HMITalk1.DriverNumPoints = 1-100

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 68

HMITalk1.DriverP2 = Indicates the first data register to be modified (0-99).

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

WHERE:

- HMITalk1.PointValue(0) = First data register value (W) to be written

- HMITalk1.PointValue(1) = Second data register value (W) to be written

...

- HMITalk1.PointValue(NumValues-1) = Last data register value (W) to be written

Write Calendar/Clock

COMMAND DESCRIPTION:

This command is used to modify the calendar/clock

information.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Output

HMITalk1.DriverNumPoints = 7

HMITalk1.DriverP0 = Device Number (0-31)

HMITalk1.DriverP1 = 87

HMITalk1.DriverP2 = 0

HMITalk1.DriverP3 = Indicates if terminator is configured as CR or as CR+LF

- 0 = Terminator is CR [0D]

- 1 = Terminator is CR+LF [0D][0A]

 

WHERE:

- HMITalk1.PointValue(0) = Year

- HMITalk1.PointValue(1) = Month

- HMITalk1.PointValue(2) = Day

- HMITalk1.PointValue(3) = Day of Week

- HMITalk1.PointValue(4) = Hour

- HMITalk1.PointValue(5) = Minute

- HMITalk1.PointValue(6) = Second

Returned Errors List

[1005] DRIVER (Internal): Invalid driver stage

[1300] PROTOCOL (Timeout): No answer

[1433] PROTOCOL (Format): Validation error in device response

[2157] CONFIG (NumValues): Too many data registers requested (max=100)

[2158] CONFIG (NumValues): Too many data registers to write (max=100)

[2161] CONFIG (NumValues): Too many input/outputs requested (max=32)

[2162] CONFIG (NumValues): Too many input/outputs to write (max=32)

[2164] CONFIG (NumValues): Too many internal relays requested (max=248)

[2165] CONFIG (NumValues): Too many internal relays to write (max=248)

[2168] CONFIG (NumValues): Too many shift registers requested (max=43)

[2169] CONFIG (NumValues): Too many shift registers to write (max=43)

[2172] CONFIG (NumValues): Too many timers/counters requested (max=32)

[2173] CONFIG (NumValues): Too many timers/counters to write (max=32)

[2266] CONFIG (NumValues): Too many values requested (max=7)

[2276] CONFIG (NumValues): Too many values to write (max=7)

[3015] CONFIG (P0): Invalid device address (0-31)

[3542] CONFIG (P1): Invalid command (valid are 84/116/67/99/68/87)

[3543] CONFIG (P1): Invalid command (valid are 88/89/77/82)

[4102] CONFIG (P2): Invalid starting calendar/clock element (0 only)

[4103] CONFIG (P2): Invalid starting input/output (0-37)

[4104] CONFIG (P2): Invalid starting internal relay (0-317)

[4106] CONFIG (P2): Invalid starting shift register (0-63)

[4107] CONFIG (P2): Invalid starting timer/counter (0-31)

[4108] CONFIG (P2): Invalid starting timer/counter (0-99)

[4592] CONFIG (P3): Invalid terminator (0 for CR, 1 for CR+LF)

[8037] CONFIG (Remote): Calendar or clock data error

[8091] CONFIG (Remote): Data range error

[8336] CONFIG (Remote): Timer/counter preset value change error

[8346] CONFIG (Remote): Undocumented error

About the XIDECM3.tlk driver

This driver requires that you have TAS-HMITalk 8.04 installed.

Driver Source Code Last Update: 11/22/2006 17:52:55

Driver Reference Last Update: 10/30/2008 17:39:20

© 1990-2008, CPKSoft Engineering. All rights reserved.

http://www.cpksoft.com - support@cpksoft.com

http://www.cpksoft.com.ar - soporte@cpksoft.com.ar>