TOSHIBA EX100 Protocol

 

TOSHIBA EX100 is driver to communicate with EX100 PLC of Toshiba Co., in Japan.

1. Read settings 

 

<Figure 1> is read setting example of TOSHIBA B-SX Bar Code Printer communication driver.

<Figure 1> Read setting example of TOSHIBA EX100 PLC communication driver

Device part of <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively, according to PLC.

 

Read schedule of TOSHIBA EX100 PLC is as follows.

READ Station Memory Type Read Start Address Save Start Address for Communication Server Read Size
(1 ~ 32)
READ, 0, DW, 0, 0, 32,
READ, 0, RW, 0, 32, 32,
READ, 0, XW, 0, 50, 2,
READ, 0, YW, 0, 60, 2,
<Table 1> Read schedule of TOSHIBA EX100 protocol

1) Station : RTU station.

2) Memory Type : Enter the PLC memory – DW, D, RW, R(bit unit), XW, X(bit unit), YW, Y(bit unit), ZW, Z(bit unit), TW, T, CW, C, ER, ST, IR, SR, TR, etc.

3) Read Start Address : Start address to read in memory.

4) Save Start Address for Communication Server : Saving start address of Communication Server.

5) Read Size : The number of items to read at a time. Number of Bit or Word between 1 and 32.

 

You have to set Communication Switch of communication card as 'LINK' mode to communicate with TOSHIBA EX100 PLC and communication program.

 (PROGRAM mode is Programer mode)

Also, if you set Station Number Selector between 0 and F, you can set station number between 0 and 15. And you can control Com Baud and Parity by using DIP switch.

<Figure 2> DIP switch of EX100 PLC

SWITCH

Com Baud (Baud Rate)

9600 BPS

4800 BPS

2400 BPS

1200 BPS

BR2

OFF

OFF

ON

ON

BR1

OFF

ON

OFF

ON

<Table 2> Com Baud according to DIP switch

SWITCH

Parity Mode

NON

EVEN

ODD

PEN

OFF

OFF

ON

ON

PR

OFF

ON

OFF

ON

<Table 3> Parity setting according to DIP switch
Memory Type

Contents

Max Size Remarks
DW, D

Data area

DW, D(WORD), DB(Bit)

Number of 1536 (0000 ~ 1535) Memory size is different according to TYPE
DB 1536 x 16 (0000 ~ 1535F) Output only
RW

Register area

RW(WORD), R(Bit)

Number of 64 (0000 ~ 0063)  
R 64 x 16 (0000 ~ 063F)
TW, T

Timer area

TW, T(WORD), TB(Bit)

Number of 128 (0000 ~ 0127) 0 ~ 7FFFh(32767)
TB 128 x 15 (0000 ~ 127E) Output only
CW, C

Count area

CW, C(WORD), CB(Bit)

Number of 96 (0000 ~ 0095)  
CB 128 x 15 (0000 ~ 095F) Output only
XW

Input card area

XW(WORD), X(Bit)

Number of 64 (0000 ~ 0063) Change according to setting
X 32 x 16 (0000 ~ 031F)
YW

Output card area

YW(WORD), Y(Bit)

Number of 64 (0000 ~ 0063)
Y 32 x 16 (0000 ~ 031F)
ZW

ZW(WORD),

Z(Bit)

Number of 32 (0000 ~ 0031)
Z 31 x 16 (0000 ~ 031F)
ER

Error status area

1 Byte Refer to <Table 5>
ST

PLC status area

1 WORD Refer to <Table 6>
IR

Power Failure status save

4 WORD Refer to <Table 7>
SR

System Parameter read

7 WORD Refer to <Table 8>
TR

PLC status area

1 WORD Refer to <Table 9>
<Table 4> Memory area supported fromTOSHIBA EX100 protocol
Error number(hexadecimal)

Error contents

00h

Normal condition (No error)

21h

No End Instruction

22h

Illegal Pair Instruction

23h

Program Failure

25h

Scan Timeout

26h

I/O Sync Error

27h

I/O Module Mismatch

28h

Operand Error

29h

Dc Power Supply Voltage Failure

30h

Watchdog Timer Error

31h

CPU Error

33h

Extension I/O Power Failure

34h

PROM Failure

35h

I/O Bus Failure

<Table 5> Error contents of ER read value
Bit position

Status value

0

Don't care

1

Request for Diagnostic Display

2

Don't care

3
4
5

Computer Error

6

TOSLINE Error

7

Don't care

8

Run mode

01 : Halt,   10 : RUN/RUN-F,   11 : Error

9
10

Don't care

11
12
13
14
15
<Table 6> Error contents of ST read value
Word position

Save contents

Save addr + 0

RW high register number

Save addr + 1

D high register number

Save addr + 2

T high register number

Save addr + 3

C high register number

<Table 7> Save address and contents of IR (Power Failure Storage Area Read) read command
Word position

Save contents

Save addr + 0

Used Page No  (0 ~ 9999)

Save addr + 1

Number of Used Step  (0 ~ 9999)

Save addr + 2

Scan time(mSec)  (0 ~ 9999)

Save addr + 3

Hardware Type

(01 : EX100 or EX500,  00 : EX250)

Save addr + 4

Circuit Program capacity(0 ~ 99)

whenever increase 1, byte capacity increase 1K

Save addr + 5

Data Area Type

(00 : D0000 ~ D0511,  01 : D0000 ~ D1535)

Save addr + 6

Option Type

(01 : EX100,  00 : EX250 or EX500)

<Table 8> Save address and contents of SR (System Parameter Read) read command
Word position

Save contents

Save addr + 0

Number of error

Save addr + 1

Error code 1

Save addr + 2

Error code 2

Save addr + 3

Error code 3

Save addr + 4

Error code 4

<Table 9> Save address and contents of TR (Diagnostic Table Read) read command

Error number

Status value

01

Command Error

02

Format Error

03

Checksum Error

04

Ending Code Error

05

Excessive Text Length

08

TimeOut 1

<Table 10> Contents of CE error message

Error number

Status value

01

No End Instruction

02

Illegal Pair Instruction

03

Program Failure

04

Memory Full

05

Illegal Pair/Circuit Number

06

Mode Mismatch

07

PROM Error

08

Operand Error

09

Erroneous Register Number/Size

10

I/O Mismatch

11

I/O No Sync

12

Erroneous Transmission

13

Type Mismatch

14

Page Full

<Table 11> Contents of EE error message
2. Write settings

 

Digital Write

Digital write setting parameters are as follows:

PORT    Connected PORT number            0 ~ 255

STATION             Station              0 ~ 15

ADDRESS           Output address              0000 ~

EXTRA1               Memory area          DB, TB, CB, X, Y, Z, R – Output as bit unit.

                                             DB, TB, CB memory area is written by combining designated bit by reading DW, TW, CW memory area.

D, DW, XW, YW, ZW, RW, C, CW, T, TW – Change Word value 0 or 1.

EXTRA2               Don't care

 

Write example 1)

Port : 0, Station : 0,  ADDRESS : 0002, Extra1 : R

The setting parameter shown above is example of changing(ON/OFF) 3rd bit value connected with R memory and EX100 PLC.

 

Analog Write

Analog write setting parameters are as follows:

PORT    Connected PORT number            0 ~ 255

STATION             Station of RTU  0 ~ 15

ADDRESS           Output address              0000 ~

EXTRA1              Output type              D, DW, XW, YW, ZW, RW, C, CW, T, TW – Write Word value.

DB, TB, CB, X, Y, R – Write only 0 and 1 value(bit unit).

DB, TB, CB memory area is written as 0 or 1 by combining designated bit by reading DW, TW, CW memory area.

EC – EX Control output method. (Refer to <Table 12> for output method)

EXTRA2               Don't care

 

Write example 1)

Port : 0, Station : 0,  ADDRESS : 0001, Extra1 : DW

The setting parameter shown above is example of changing 2nd area value connected with EX100 PLC and D memory.

 

Write example 2)

Port : 0, Station : 0,  ADDRESS : 0000, Extra1 : EC

The setting parameter shown above is of RUNNING(refer to <Table 12>) EX100 PLC by writing value as 2.

Output value

Result

01

HALT

02

RUN

03

Error Reset

04

RUN-F

08

Error Table Clear

09

EEPROM Write

<Table 12> Result of EC (EX Control) command according to output value