
3739 Kandatsu-machi Tsuchiura-city Ibaraki-pref
300-0013 Japan
Phone +81-29-382-3031 Fax +81-29-832-2662
URL http://www.tsujicon.jp/
E-mail info2@tsuji-denshi.co.jp
APPLICATION OF ELECTRONIC DEVICES
TSUJI ELECTRONICS CO.,LTD

1.Specification・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・
2.Panel Layout・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・
3.SETUP mode・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・・
4.Communication Command・・・・・・・・・・・・・・・・・・・・・・
5.Firmware Version Up・・・・・・・・・・・・・・・・・・・・・・

4CH(2CH) ENCORDER COUNTER <<ER4C-04, ER2C-04>>
User's Manual
1. Specification
1) Power Supply AC100V-220V 50/60Hz
2) Power Consumption 100VA maximam
3) Backup Memory backup by internal batteries during Power off state.
(more than 5 years)
4) Counter 32bit 10 decimal digit (-2147483648 ~ 2147483647)
5) Preset Data of LCD indicator are set as present data by Preset SW.
Data are also set by LAN Comunication Command.
6) Z-phase Counter Clear counter by Z-phase signal input.
Clear Each channel, can set by LAN communication commands.
7) Scaling Can use scaling function (significant figures:15)
Scaled value = (pulse-count + offset)×multiplier
parameter (they are set by LAN communication commands.)
・offset 0~±2147483647 (initial data:0)
・multiplier ±0.000001 ~ 999.999999 (initial data:1)
8) Terminator Can selecct using terminator(120Ω) or not,
when Encorder is Line Driver type.
9) Indicator ±7digit×4CH(2CH) (-9999999~+9999999)
10) Encoder Type A-phase and B-phase type of line driver or open collector output
11) Interface LAN (10/100BASE-T)
12) Case Size (H)88 (W)482.6 (D)324.5

2. Panel Layout
1) Flont Panel(4CH)
①
for Power on/off
② LCD indicator ● Scaling Parameter is default value
LCD indicate encoder pulse count.
(the least significant 7 decimal digit)
* if count value is more than +2147483647 or less than -2147483648,
the polarity will be reversed
upper :current counter value
lower :preset value(can be changed by ⑤ and ⑥)
when SETUP mode, display setting item
● Scaling Parameter is not default value
LCD indicate scaled value.
When the most significant 7 decimal digit does not include a decimal
point, the most significant 7 digit is displayed.
When the most significant 7 decimal digit include a decimal point,
the most significant 6 digit is displayed.
upper :scaled value
lower :preset value(can be changed by ⑤ and ⑥)
when SETUP mode, display setting item
③ SETUP SW
④ Phase Z LED monitor of Phase Z pulse
(can be turn off by setting)
⑤ Degit when setting preset value and IP address, change degit.
If you press both (←)button and (→)button for 3 seconds,
scaling parameter is initialized.
⑥ INC/DEC increase or decrease preset value and IP address
If you press both INC and DEC for 3 seconds, preset-data turns to zero.
⑦ PRESET Preset data to each Position Counter
preset enable to maximum ±9999999
when SETUP mode, change setting item

2) Rear Panel(4CH)
① LAN Connector for LAN(10/100BASE-T)
② F3A Fuse holder for AC220V
if necessary use 3A midget fuse
③ A,B,C,D ENCORDER Encoder input connector
for A,B-phase type incremental Encoder
Encoder type selections between Line driver and Open
collector are available individually by setting.
Line driver type is selected at the time of factory shipment.
+5V power supply for encoder
panel receptacle SRCN2A16-10S(JAE)
cable plug SRCN6A16-10P(JAE)
Line Driver Circuit (ex:pin4-5) (pin6-7 and pin8-9 are same as pin4-5)
Termination is selectable
in SETUP mode.
④ AC100V-220V Plug for AC100-220V power supply

3.SETUP mode
You can setup Encorder Counter in SETUP mode.
*When SETUP mode, Encorder Counter stops counting.
1) Setting Preparation and Completion
Turn on the Power ON SW, and you can use Encorder Couneter in a few seconds.
Setting values(MULT-P, DIR, Z-LED, ENCTYPE, LANCTRL, LAN IP:1, LAN IP2, Port no) are
kept by battery backup.
a) Push SETUP SW (then SETUP SW is lighted.)
LCD indicator display Setting Item.
degit→ 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8
+ 0 1 2 3 4 5 6 → M U L T - P
+ 0 0 1 2 3 4 5 1
NORMAL mode SETUP mode
You can change setting by using (+)/(-) button under the LCD indicator.
Appearance of Cursor depends on setting item.
When Cursor appears, You can change the position by using (←)/(→) button.
You can change setting item by using PRESET SW.
See the order of setting items below.
MULT-P → DIR → Z-LED → ENCTYPE → TERMINTR →
LAN IP:1 → LAN IP:2 → Port no → MAC
Setting items from LAN IP:1 to MAC are common for each channel.
So they are displayed only in A cannel LCD indicator. (MAC is Read-Only.)
b) Push SETUP SW again, then all LCD return to NORMAL mode.
Encorder Counter starts runnig in a new setting, except for "LAN IP:1", "LAN IP:2" and
"Port no". If you change those setting value, turn off POWER ON SW after the display
returns to NORMAL mode, and trun on POWER ON SW again.
See the explanation of each setting item below.
2) MULT-P
You can select count rate from 1,2,4 times of encoder input pulse by using (+)/(-) button.
3) DIR
You can change the relation between the direction of rotation(CW/CCW) and
count up/down direction(U:up/D:down).
4) Z-LED
You can select ENABLE/DISABLE by using (+)/(-) button.
5) ENCTYPE
You can select encorder type(L.D:Line Driber or O.C:Open Collector) by using (+)/(-) button.
6) Terminator
You can select ENABLE/DISABLE by using (+)/(-) button.
7) LAN IP:1(upper 2byte of IP address)
You can chanse IP address by using (+)/(-) button and (←)/(→) button.
Setting value is decimal number only. Default value is "192.168."
8) LAN IP:2(lower 2byte of IP address)
You can change IP address by using (+)/(-) button and (←)/(→) button.
Setting value is decimal number only. Default value is ".1.55"
9) Port no
You can set Port Number by usint (+)/(-) button and (←)/(→) button.
Setting value is decimal number only. Default value is "07777".
10) MAC
You can see MAC address , but cannot change the address.

4. Communication Command
1) De-limitter is fixed to be CR+LF.
2) Command format except command type will be ignored.
S20 RA±□□□□□□□ A position counter read request
(the least significant 7 digit)
S22 RB±□□□□□□□ B position counter read request
(the least significant 7 digit)
S24 RC±□□□□□□□ C position counter read request
(the least significant 7 digit)
S26 RD±□□□□□□□ D position counter read request
(the least significant 7 digit)
A position counter preset
(must be in within 10digit) If the value is over the range,
maximun(or minimum) value is set.
SB±□□・・・□□
B position counter preset
(must be in within 10digit) If the value is over the range,
maximun(or minimum) value is set.
C position counter preset
(must be in within 10digit) If the value is over the range,
maximun(or minimum) value is set.
D position counter preset
(must be in within 10digit) If the value is over the range,
maximun(or minimum) value is set.
VER? 1.00 12-09-03 ER4C-04 Firmware version read request
(in case of Ver.1.00)
FROM? FROM0 or FROM1 current FROM read
FROM0, FROM1 FROM select
(□ : decimal ASCII data)
Additional Command (Rev.2~)
ZC□
Z-phase counter clear request (channel A~D)
The request is cancelled by Z-phase signal input or
“ZN□” command.
ZN□ Z-phase counter clear cancel
(channle A~D)
ZT□△ Select "Z-phase rising edge" or "Z-phase falling edge",
to set the timing of clearing the counter. (channel A~D)
ZS□
Z□○△
Z-phase counter clear status read
(channel A~D)
VERH? HD-Ver.02 Hardware version read request
(in case of Ver.02)
□:A~D (channel A~D)
○:C or N (C: clear flag ON, N: clear flag OFF)
△:U or D (U:rising edge, D:falling edge)
※ When MULT-P is 1times, the setting of counter clear timing by Z-phase is ignored.
Counter clear timing is syncronized with couting.

Additional Command(Rev.3~)
S30
A position counter read request
(10 digit format) (10 digit)
S32 RB±□□・・・□□ B position counter read request
(10 digit format) (10 digit)
S34 RC±□□・・・□□ C position counter read request
(10 digit format) (10 digit)
S36 RD±□□・・・□□ D position counter read request
(10 digit format) (10 digit)
MW△±□□□.□□□□□□
Scaling Parameter:multiplier setting (channel A~D)
(must be in the format)
range:±0.000001~999.999999
MR△
M△±□□□.□□□□□□
Scaling Parameter:multiplier read request
OW△±□□・・・□□
Scaling Parameter:offset setting (channel A~D)
(must be in within 10 digit)
range:0~±2147483647
If the value is over the range,
maximun(or minimum) value is set.
OR△
O△±□□□□□□□□□□
Scaling Parameter:offset read request
(10 digit format)
(channel A~D)
D△ D△±□・・・□.□・・・□ Scaled value read request
(19 digit format) (channel A~D)
(number of decimal places: 6)
□:decimal ASCII data
△:A~D (channel A~D)

When you update firmware, cut connection between Encorder Counter and Encorder for safety.
Download version-up software(for Windows) from Tsuji Electronics Homepage(http://www.tsujicon.jp/).
Download version-up file fromTsuji Electronics Homepage and extract it.
① Select "LAN" and click "Connect" button.
② New Window for connection will display.
Input IP address and Port number and click "Connect" button.
③
Input command into "Scmd" and click "SndRcv" button.
The reply will show at "RcvSnd".
To confirm the connection, use some command. (for example VER? command)
④ Select version-up file from your directory and click "File Select" button.
⑤ The file name you selected will be shown at "File Name".
If the file name is correct, click "File Snd" button. Then version up software starts sending.
While Encorder Counter is receiving the file, SETUP SW will blink slowly.
When Encorder Counter finishes receiving, SETUP SW will blink fast and
Encorder Counter starts writing the file into ROM.
When the writing finish, SETUP SW will go out.
Turn off POWERON SW and turn on it again. Encorder Counter will run in a new firmware.
If the data transfer to Encorder Counter fails, SETUP SW lamp will not go out.
In this case, turn off POWER ON SW and turn on again. Then try again.
If the writing into ROM fails, Encorder Counter will not run correctly.
In this case, turn off POWER ON SW and turn on again with pushing SETUP SW.
Then turn off POWER ON SW again and turn on again.
Encorder Counter will run in a old firmware.
Please try version-up again.
(this recovery is usuful when you want to use old firmware)
If Encorder counter doesnot run in a old firmware, use another way of recovery below.

For safety reasons, unplug the appliance from the outlet when you open cover.
If you warry, please contact us.
① Turn off POWER ON SW and open the cover. There is DSW1 on Printed Curcuit Board"TEP178".
Set DSW1's switch1 on.
② Turn on POWER ON SW with pushing SETUP SW. SETUP SW will blink and go out.
③ Turn off POWER ON SW again and set DSW1's switch1 off.
④ Turn on POWER ON SW again. Encorder Counter will run using firmware version 1.00.
Then try update again by using new firmware file.
* After firmware version up, position data will clear and setting value will be default value.
See default value below
counter 0
preset 0
MULT-P 1
DIR CW=U, CCW=D
Z-LED DISABLE
ENCTYPE L.D
TERMINTR ENABLE
IP address 192.168.1.55
Port no 7777