CPKSoft Engineering

XMELSECA.tlk Driver Reference

Mitsubishi Melsec-Q A-Compatible Protocol Driver

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

Driver Overview

The XMELSECA driver implements the Mitsubishi MELSEC-Q protocol

that allows you to read and write data to the Mitsubishi PLCs of

the A Series (A2N, A3N), AnA Series and AnU Series using the

MELSEC A-Compatible 1C Frames Format 1 or 4 protocol through serial

communication modules. Data communication using the A compatible

1C frames is equivalent to the communication function using the

dedicated protocol supported by the A series computer link modules.

RS-232 and RS-422 multi-drop is supported.

 

Protocol specifications:

 

Format: MELSEC-Q A-Compatible 1C Frames using Format 1 or 4

Verification: Checksum Enabled

Characters: ASCII codes

Memory types supported: X, Y, M, TS, TC, TN, CS, CT, CN, D, R and W

Suggested COM settings: 19200,E,8,1

 

IMPORTANT NOTE:

 

If you cannot communicate with your PLC, check after setting the

CommTxHoldRTSWhileTransmitting and CommTxHoldRTSWhileReceiving

properties both to On.

Supported Equipment Type

Programmable Logic Controllers

Supported Devices List

MITSUBISHI A-Series PLCs.

MITSUBISHI A61PEU Controllers

MITSUBISHI A62PEU Controllers

MITSUBISHI A61P-UL Controllers

MITSUBISHI A273UHCPU Controllers

MITSUBISHI A273UHCPU-S3 Controllers

MITSUBISHI A272B Controllers

MITSUBISHI A278B Controllers

MITSUBISHI A273EX Controllers

MITSUBISHI A278LX Controllers

MITSUBISHI MR-HENC Controllers

MITSUBISHI A171SHCPUN Controllers

MITSUBISHI A172SHCPUN Controllers

MITSUBISHI A173UHCPU(-S1) Controllers

MITSUBISHI A172B Controllers

MITSUBISHI A175B Controllers

MITSUBISHI A178B Controllers

MITSUBISHI A178B-S1/S2/S3 Controllers

MITSUBISHI A172SENC Controllers

Supported Commands List

Read Words of type TN, CN, D, R or W

Read Bits of type X, Y, M, TS, TC, CS or CC

Write Words of type TN, CN, D, R or W

Write Bits of type X, Y, M, TS, TC, CS or CC

Read Words of type TN, CN, D, R or W

COMMAND DESCRIPTION:

Reads a group of consecutive words of type TN (timer current

values), CN (counter current values), D (data registers),

R (file registers) or W (link registers) starting at a given

point address.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Input

HMITalk1.DriverNumPoints = 1-64

HMITalk1.DriverP0 = Identifies the station number to be accessed (0-31)

HMITalk1.DriverP1 = Identifies the PLC in the MELSECNET/H, MELSECNET/10

to be accessed, as explained below:

- 255 for Stations connected to an external device (local station) or

for Stations connected to an external connection station by multidrop link.

- 1 to 64 for Station on the MELSECNET/H, MELSECNET 10 (excluding 1, 2 above)

or for Remote master station on the MELSECNET/H (When an external device

is connected to the Q series C24 in the remote I/O station).

- 0 can be designated when accessing the control station.

HMITalk1.DriverP2 = Specifies the type of CPU:

- 0 for A CPU

- 1 for AnA/AnU CPU

HMITalk1.DriverP3 = Specifies the message wait time (0-150), in milliseconds.

HMITalk1.DriverP4 = Specifies the messages format:

- 0 = 1C Frame Format 1

- 1 = 1C Frame Format 4

HMITalk1.DriverP6 = Specifies the address of the first word to be read.

Valid addresses for A CPUs are:

- TN000 to TN255 (timer current values)

- CN000 to CN255 (counter current values)

- D0000 to D1023 (data registers)

- R0000 to R8191 (file registers)

- W0000 to W03FF (link registers) (*)

Valid addresses for AnA/AnU CPUs are:

- TN00000 to TN02047 (timer current values)

- CN00000 to CN01023 (counter current values)

- D000000 to D008191 (data registers)

- R000000 to R008191 (file registers)

- W000000 to W001FFF (link registers) (*)

 

(*) Hexadecimal notation

 

RETURNS:

- HMITalk1.PointValue(0) = First word value (0-65535)

- HMITalk1.PointValue(1) = Second word value (0-65535)

.

- HMITalk1.PointValue(DriverNumPoints-1) = Last word value (0-65535)

Read Bits of type X, Y, M, TS, TC, CS or CC

COMMAND DESCRIPTION:

Reads a group of consecutive bits of type X (inputs),

Y (outputs), M (internal relays), TS (timer contacts),

TC (timer coils), CS (counter contacts) or CC (counter coils),

starting at a given point address.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Input

HMITalk1.DriverNumPoints = 1-256

HMITalk1.DriverP0 = Identifies the station number to be accessed (0-31)

HMITalk1.DriverP1 = Identifies the PLC in the MELSECNET/H, MELSECNET/10

to be accessed, as explained below:

- 255 for Stations connected to an external device (local station) or

for Stations connected to an external connection station by multidrop link.

- 1 to 64 for Station on the MELSECNET/H, MELSECNET 10 (excluding 1, 2 above)

or for Remote master station on the MELSECNET/H (When an external device

is connected to the Q series C24 in the remote I/O station).

- 0 can be designated when accessing the control station.

HMITalk1.DriverP2 = Specifies the type of CPU:

- 0 for A CPU

- 1 for AnA/AnU CPU

HMITalk1.DriverP3 = Specifies the message wait time (0-150), in milliseconds.

HMITalk1.DriverP4 = Specifies the messages format:

- 0 = 1C Frame Format 1

- 1 = 1C Frame Format 4

HMITalk1.DriverP6 = Specifies the address of the first bit to be read.

Valid addresses for A CPUs are:

- X0000 to X07FF (inputs) (*)

- Y0000 to Y07FF (outputs) (*)

- M0000 to M2047 (internal relays)

- TS000 to TS255 (timer contacts)

- TC000 to TC255 (timer coils)

- CS000 to CS255 (counter contacts)

- CC000 to CC255 (counter coils)

Valid addresses for AnA/AnU CPUs are:

- X000000 to X001FFF (inputs) (*)

- Y000000 to Y001FFF (outputs) (*)

- M000000 to M008191 (internal relays)

- TS00000 to TS02047 (timer contacts)

- TC00000 to TC02047 (timer coils)

- CS00000 to CS01023 (counter contacts)

- CC00000 to CC01023 (counter coils)

 

(*) Hexadecimal notation

 

RETURNS:

- HMITalk1.PointValue(0) = First bit status (0 or 1)

- HMITalk1.PointValue(1) = Second bit status (0 or 1)

.

- HMITalk1.PointValue(DriverNumPoints-1) = Last bit status (0 or 1)

Write Words of type TN, CN, D, R or W

COMMAND DESCRIPTION:

Writes a group of consecutive words of type TN (timer current

values), CN (counter current values), D (data registers),

R (file registers) or W (link registers) starting at a given

point address.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Analog Output

HMITalk1.DriverNumPoints = 1-64

HMITalk1.DriverP0 = Identifies the station number to be accessed (0-31)

HMITalk1.DriverP1 = Identifies the PLC in the MELSECNET/H, MELSECNET/10

to be accessed, as explained below:

- 255 for Stations connected to an external device (local station) or

for Stations connected to an external connection station by multidrop link.

- 1 to 64 for Station on the MELSECNET/H, MELSECNET 10 (excluding 1, 2 above)

or for Remote master station on the MELSECNET/H (When an external device

is connected to the Q series C24 in the remote I/O station).

- 0 can be designated when accessing the control station.

HMITalk1.DriverP2 = Specifies the type of CPU:

- 0 for A CPU

- 1 for AnA/AnU CPU

HMITalk1.DriverP3 = Specifies the message wait time (0-150), in milliseconds.

HMITalk1.DriverP4 = Specifies the messages format:

- 0 = 1C Frame Format 1

- 1 = 1C Frame Format 4

HMITalk1.DriverP6 = Specifies the address of the first word to be written.

Valid addresses for A CPUs are:

- TN000 to TN255 (timer current values)

- CN000 to CN255 (counter current values)

- D0000 to D1023 (data registers)

- R0000 to R8191 (file registers)

- W0000 to W03FF (link registers) (*)

Valid addresses for AnA/AnU CPUs are:

- TN00000 to TN02047 (timer current values)

- CN00000 to CN01023 (counter current values)

- D000000 to D008191 (data registers)

- R000000 to R008191 (file registers)

- W000000 to W001FFF (link registers) (*)

 

(*) Hexadecimal notation

 

WHERE:

- HMITalk1.PointValue(0) = Value for first word (0-65535)

- HMITalk1.PointValue(1) = Value for second word (0-65535)

.

- HMITalk1.PointValue(DriverNumPoints-1) = Value for last word (0-65535)

Write Bits of type X, Y, M, TS, TC, CS or CC

COMMAND DESCRIPTION:

Writes a group of consecutive bits of type X (inputs),

Y (outputs), M (internal relays), TS (timer contacts),

TC (timer coils), CS (counter contacts) or CC (counter coils),

starting at a given point address.

 

PROPERTY SETTINGS REQUIRED:

HMITalk1.DriverDataType = Digital Output

HMITalk1.DriverNumPoints = 1-256

HMITalk1.DriverP0 = Identifies the station number to be accessed (0-31)

HMITalk1.DriverP1 = Identifies the PLC in the MELSECNET/H, MELSECNET/10

to be accessed, as explained below:

- 255 for Stations connected to an external device (local station) or

for Stations connected to an external connection station by multidrop link.

- 1 to 64 for Station on the MELSECNET/H, MELSECNET 10 (excluding 1, 2 above)

or for Remote master station on the MELSECNET/H (When an external device

is connected to the Q series C24 in the remote I/O station).

- 0 can be designated when accessing the control station.

HMITalk1.DriverP2 = Specifies the type of CPU:

- 0 for A CPU

- 1 for AnA/AnU CPU

HMITalk1.DriverP3 = Specifies the message wait time (0-150), in milliseconds.

HMITalk1.DriverP4 = Specifies the messages format:

- 0 = 1C Frame Format 1

- 1 = 1C Frame Format 4

HMITalk1.DriverP6 = Specifies the address of the first bit to be written.

Valid addresses for A CPUs are:

- X0000 to X07FF (inputs) (*)

- Y0000 to Y07FF (outputs) (*)

- M0000 to M2047 (internal relays)

- TS000 to TS255 (timer contacts)

- TC000 to TC255 (timer coils)

- CS000 to CS255 (counter contacts)

- CC000 to CC255 (counter coils)

Valid addresses for AnA/AnU CPUs are:

- X000000 to X001FFF (inputs) (*)

- Y000000 to Y001FFF (outputs) (*)

- M000000 to M008191 (internal relays)

- TS00000 to TS02047 (timer contacts)

- TC00000 to TC02047 (timer coils)

- CS00000 to CS01023 (counter contacts)

- CC00000 to CC01023 (counter coils)

 

(*) Hexadecimal notation

 

WHERE:

- HMITalk1.PointValue(0) = Status for first bit (0 or 1)

- HMITalk1.PointValue(1) = Status for second bit (0 or 1)

.

- HMITalk1.PointValue(DriverNumPoints-1) = Status for last bit (0 or 1)

Returned Errors List

[1005] DRIVER (Internal): Invalid driver stage

[1300] PROTOCOL (Timeout): No answer

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

[2204] CONFIG (NumValues): Too many values (max=256)

[2230] CONFIG (NumValues): Too many values (max=64)

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

[3506] CONFIG (P1): Invalid address

[4136] CONFIG (P2): Invalid CPU type

[4591] CONFIG (P3): Invalid message wait time (0-150)

[5039] CONFIG (P4): Invalid messages format

[6008] CONFIG (P6): Invalid Address

About the XMELSECA.tlk driver

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

Driver Source Code Last Update: 06/17/2005 16:02:47

Driver Reference Last Update: 10/30/2008 17:41:35

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

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

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