The text of a manual · part 29 of 37
Sharp Programmable Controller New Satellite JW10 User's Manual: Chapter 13 How to Use Communication Port, pages 226 to 234
Pages 226 to 234 of 307, from Sharp Programmable Controller New Satellite JW10 User's Manual
The original document is the PDF (5.0 MB). This is its text as extracted, unedited; tables and drawings read best in the PDF, and each page heading opens it at that page.
Filed in the catalog under the Sharp jW-10CM
Page 226
MTC
Communication format
Function
Current value monitor of timer/counter Read out current value of TMR/CNT number 1 to 2. Sequential read out current value of timer/counter up to 256.
A ・ A D D ? R M T C Command ・ I ・ ・ (H) (L)
TMR/CNT number 1
TMR/CNT number 2
S S C C C (H) (L) R
A ・ A D D ♯ R M T C Response ・ I ・ ・ (H) (L)
TMR/CNT number 1
TMR/CNT number 2
Data 1 ‥‥ Data n Attributed ‥ Attributed C C C data 1 data n (H) (L) R
TMR/CNT number 0000 to 0377 (Octal) 4 characters. See note 1 Data
S S n: Max.256
Attributed 2 characters, 00: PC program is not in use 02: CNT 04: TMR data Write mode Mode 0, Mode 1, Mode 2 Execution condition PC operation state Stop, Run Read out TMR/CNT current value 000 to 002 of PC 03. (Response time: 10 ms) 03?1MTC00000002C7C R
Command Example for use
Station Response number time
Response
TMR/CNT number 1 check TMR/CNT Sum code number 2
03♯1MTC000000026518 Station Response number time
TMR/CNT number 1
TMR CNT 001 CNT 002 current value 0032 current value 1314
CNT
TMR/CNT TMR000 number 2 current value 1865
3 2 0 0 1 4 1 3 0 4 0 2 0 2 5 9C R
CNT Sum check code
Note 1: Current value data of timer/counter is configured with two bytes as shown below:
1st byte
2nd byte 7 TMR000 to TMR277 TMR300 to TMR377
13
CNT000 to CNT377
0 0 0
6 0 0 0
5 0 0 0
4 102 1 101 1 103 1
3
2
1
0
7
6
101 8
4
2
1
8
4
100 8
4 4
4
3
2
2
1
8
2
4
1
8
4
13-10
1
8
4
0
2
1
2
1
2
1
10-2 2
1
8
4
101 2
1 10-1
10-1
102 8
5 100
100 2
1
8
4
Page 227
SRT
Set timer/counter (time-up, count-up) or reset (return to setting value).
A ・ A D D ? R S R T Command ・ I ・ ・ (H) (L)
TMR/CNT number
Data
Communication format
Function
Set/reset timer/counter
A ・ A D D ♯ R S R T Response ・ I ・ ・ (H) (L)
TMR/CNT number
S S C C C (H) (L) R
S S C C C (H) (L) R
TMR/CNT number 0000 to 0377 (Octal) 1: set 0: reset Data Write mode Mode 1, Mode 2 Execution condition PC operation state Run
Set TMR 002 of PC06. (Response time: 70 ms) 06?7SRT0002138 C R
Command Example for use
Station Response number time
TMR number
06♯7SRT000285 C R
Response
Station Response time number
TMR number Sum check code
Register current value monitor
Function
Read out current value of register address 1 to 2. Sequential read out up to 512 bytes.
Communication format
MRG
Sum check code Set
・ ・ A A
D D ? Command ・ ・ (H) I M R G (L)
Register address 1
Register address 2
S S C C C (H) (L) R
A ・ A D D ♯ R M R G Response ・ I ・ ・ (H) (L)
Register address 1
Register address 2
Data 1
R
13 ‥‥
Data n
S S C C C (H) (L) R
A0000 to A1577, 09000 to 09777, 29000 to 29777 Register address (Note1) B0000 to B0777, 19000 to 19777, 39000 to 39777 (Octal) 2 characters (hexadecimal) n: Max. 512 Data Mode 1, Mode 2, Mode 3 Execution Write mode condition PC operation state Stop, Run
Read the data (hexadecimal) 09000 to 09003 of PC06. (Response time : 100ms) Command Example for use
06?AMRG09000090033F C R Station Response number time
Response
Register address 1
Register address 2
Sum check code
06♯AMRG0900009003 Station Response number time
Register address 1
Register address 2
004F3201EBC R 09000 09001 09002 09003 Sum check code
Note 1: A0000 to A1577 and B0000 to B0777 indicate コ0000 to コ1577 and b0000 to b0777, repectively.
13-11
Page 228
WRG
Communication format
Function
Write in register Write required data from the register address 1 to 2. Sequentially writable up to 512 bytes.
A ・ A D D ? R W R G Command ・ I ・ ・ (H) (L)
Register address 1
Register address 2
Data 1
A ・ A D D ♯ R W R G Response ・ I ・ ・ (H) (L)
Register address 1
Register address 2
S S C C C (H) (L) R
‥‥
S S Data n C C C R (H) (L)
A0000 to A1577, 09000 to09777, 29000 to 29777 Register address (note1) B0000 to B0777, 19000 to 19777, 39000 to 39777 (Octal) Data 2 characters (hexadecimal) n: Max. 512 Mode 1, Mode 2 Execution Write mode condition PC operation state Stop, Run
Write 14, 00, 32, 56 (hexadecimal) in コ0400 to コ0403 of PC30, respectively. (Response time: 30 ms) Command
30?3WRGA0400A0403 Station Response number time
Example for use
Register address 1
Register address 2
1400325699C R
コ0400 コ0401 コ0402 コ0403 Sum check code
30♯3WRGA0400A04034A C R
Response
Station Response number time
Register address 1
Register address 2
Sum check code
Note 1: A0000 to A1577 and B0000 to B0777 indicate コ0000 to コ1577 and b0000 to b0777, repectively.
FRG
13
Communication format
Function
Write the same data in register Write the same data in the register address 1 to 2. Sequential write up to 512 bytes.
A ・ A D D ? R F R G Command ・ I ・ ・ (H) (L)
Register address 1
Register address 2
Data
A ・ A D D ♯ R F R G Response ・ I ・ ・ (H) (L)
Register address 1
Register address 2
S S C C C (H) (L) R
S S C C C (H) (L) R
A0000 to A1577, 09000 to 09777, 29000 to 29777 Register address (note1) B0000 to B0777, 19000 to 19777, 39000 to 39777 Data 2 characters (hexadecimal) Mode 1, Mode 2 Execution Write mode condition PC operation state Stop, Run
Write data 40 (hexadecimal) in register 09000 to 09077 of PC11. (Response time: 100 ms) Example for use
Command
11?AFRG090000907740DBC R
Station Response time number
Response
Register address 1
Register address 2
Data Sum check code
11♯AFRG09000090775B C R Station Response number time
Register address 1
Register address 2
Sum check code
Note 1: A0000 to A1577 and B0000 to B0777 indicate コ0000 to コ1577 and b0000 to b0777, repectively.
13-12
Page 229
RPM
Communication format
Function
Read out program memory Read out contents of the program address 1 to 2. This function can read sequentially up to 256 steps. It reads instruction as machine language, not a format of "STRXXXXX."
Command
A ・ ・ A D D ? R R P M I ・ ・ (H) (L)
Program address 1
Program address 2
S S C C C (H) (L) R
Response
A ・ ・ A D D ♯ R R P M I ・ ・ (H) (L)
Program address 1
Program address 2
S S Command1 ‥‥ Commandn C C C R (H) (L)
Program 000000 to 002777 [JW-1324K/1342K] address 000000 to 007777 [JW-1424K/1442K, JW-1624K/1642K] (Octal) Data 4 characters (hexadecimal) n: Max. 256 Mode 0, Mode 1, Mode 2 Execution Write mode condition PC operation state Stop, Run Read address 000000 to 000002 contents of PC01. (Response time: 10 ms) 0 1 ? 1 R P M 0 0 0 0 0 0 0 0 0 0 0 2 F EC R
Command Example for use
Station Response number time
Response
Program address 1
Program address 2 Sum check code
01♯1RPM000000000002 Station Response number time
Program address 1
Program address 2
0080009108B8A6C R 000000 contents of address
000001 contents 000002 contents Sum check code of address of address
Note 1: When you store program memory which is read by this command, be sure to store system memory with RSM command as well.
WPM
Communication format
Function
Write in program memory Write instruction in the program address 1 to 2. This function can write sequentially up to 256 steps. It writes instruction as machine language, not a format of "STRXXXXX."
13
Command
A ・ ・ A D D ? R W P M I ・ ・ (H) (L)
Program address 1
Program address 2
Command1 ‥‥ Commandn C C R (H) (L)
Response
A ・ ・ A D D ♯ R W P M I ・ ・ (H) (L)
Program address 1
Program address 2
S S C C C (H) (L) R
S S C
Program 000000 to 002777 [JW-1324K/1342K] address 000000 to 007777 [JW-1424K/1442K, JW-1624K/1642K] (Octal) Data 4 characters (hexadecimal) n: Max. 256 Execution Write mode Mode 2 condition PC operation state Stop by HLT command Write the below contents in address 000000 to 000002 of PC02. (Response time : 20 ms) Command
02?2WPM000000000002 Station Response number time
Example for use
Program address 1
Program address 2
0080009108B883C R 000000 contents of address
Response
000001 contents 000002 contents Sum check code of address of address
C
0 2 ♯ 2 W P M 0 0 0 0 0 0 0 0 0 0 0 2 1 3R Station Response number time
Program address 1
Program address 2
Sum check code
Note 1: Prior to loading the program which was stored by this command, be sure to load system memory contents.
13-13
Page 230
CTC
Communication format
Function
Change setting value of timer/counter Change timer/counter setting value in the designated program address.
Command
A ・ ・ A D D ? R C T C I ・ ・ (H) (L)
Program address
S Setting S C C C value (H) (L) R
Response
A ・ ・ A D D ♯ R C T C I ・ ・ (H) (L)
Program address
S S C C C (H) (L) R
Program 000000 to 002777 [JW-1324K/1342K] address 000000 to 007777 [JW-1424K/1442K, JW-1624K/1642K] (Octal) Setting value 0000 to 1999 (BCD) Mode 2 Write mode Execution condition PC operation state Stop, Run Change setting value of address 000024 to 0100 of PC04. (Response time: 20 ms) Command Example for use
04?2CTC00002401006A C R Station Response number time
Response
Program address
Setting value Sum check code
04♯2CTC00002447C R Station Response number time
13
13-14
Program address
Sum check code
Page 231
RSM
Communication format
Function
Read out system memory Read out contents of the system memory address 1 to 2. Sequential read up to 256 bytes.
A S System memory System memory S ・ A D D ? R R S M Command ・ C C C I ・ ・ (H) (L) addres 1 addres 2 (H) (L) R A ・ A D D ♯ R R S M System memory System memory Data 1 ‥‥ Data n Response ・ I ・ ・ (H) (L) addres 1 addres 2
S S C C C (H) (L) R
System memory 0000 to 0377 (Octal) address 2 characters (hexadecimal) n: Max. 512 Data Write mode Mode 0, Mode 1, Mode 2 Execution condition PC operation state Stop, Run Read out data (hexadecimal) of system memory #201, #202 of PC10. (Response time : 20ms) Command Example for use
10?2RSM02010202B5 C R Station Response number time
Response
10♯2RSM020102020100D1C R Station Response time number
WSM
Communication format
Function
System memory System memory #201 #202 Sum check code address 1 address 2
Write in system memory Write data in the system memory address 1 to 2. Sequential write up to 256 bytes. (note 1) ・ ・ A A
R
D D ♯ Command ・ ・ (H) I W S M (L)
Response
System memory System memory Sum check address 1 address 2 code
System memory System memory addres 1 addres 2
‥‥
Data 1
Data n
S S C C C (H) (L) R
A S S ・ ・ A D D ♯ R W S M System memory System memory C C C I ・ ・ (H) (L) addres 1 addres 2 (H) (L) R
System memory 0000 to 0377 (Octal) address 2 characters (hexadecimal) Data Write mode Mode 2 Execution condition PC operation state Stop by HLT command Write 01, 01 (both hexadecimal) in system memory #201, #202 of PC22. (Response time: 10 ms) Command 22?1WSM020102020101ECC Example R for use System memory System memory #0201 #0202 Sum check Station Response number
Response time address 1 address 2 code
22♯1WSM02010202CAC R Station Response number time
System memory System memory Sum check address 2 code address 1
Note 1: Do not write in unreleased address in system memory address, or the PC may malfunction.
13-15
13
Page 232
Read out date
[JW-1424K, JW-1442K, JW-1624K ,and JW-1642K only]
Year (BCD)
Month (BCD)
Day
Date
Day (BCD)
Year/month/ Lower 2digits of A.C. 01 to 12 01 to 31 date/day 00 to 99 Example: 96 as 1996 Mode 0, Mode 1, Mode 2 Execution Write mode condition PC operation state Stop, Run
[
Day
A S S C ・ ・ A D D ♯ R M D Y C C I ・ ・ (H) (L) (H) (L) (H) (L) (H) (L) (H) (L) (H) (L) R
Date
Response
Month
A S S ・ ・ A D D ? R M D Y C C C I ・ ・ (H) (L) (H) (L) R Mohth
Command
Year
Read out date (year, month, date, and day) of clock.
Year
Function Communication format
MDY
SUN 00
]
MON 01
Day of the week (BCD) TUE WED THU 02 03 04
FRI 05
SAT 06
Read out date of PC06. (Response time: 20 ms) 0 6 ? 2 M D Y 3 FC R
Command
Example for use
Station Response number time
Sum check code
06♯2MDY96042504BD C R
Response
Station Response number time
Month (BCD)
Year (BCD)
Year/month/ Lower 2digits of A.C. 01 to 12 date/day 00 to 99 Example: 96 as 1996 Mode1, Mode 2 Execution Write mode condition PC operation state Stop, Run
]
Day
Day
S S A ・ ・ A D D ♯ R S D Y C C C I ・ ・ (H) (L) (H) (L) R
Date
Response
Date
A S S C ・ ・ A D D ? R S D Y C C I ・ ・ (H) (L) (H) (L) (H) (L) (H) (L) (H) (L) (H) (L) R
Mohth
Command
Month
Set date (year, month, date and day) of clock. Year
Function
[
Sum check code
[JW-1424K, JW-1442K, JW-1624K ,and JW-1642K only]
Year
13
Set date
Communication format
SDY
April 25th, 1996 (Thu.)
Day (BCD) 01 to 31
SUN 00
MON 01
Day of the week (BCD) TUE WED THU 02 03 04
Set date of PC07 as Friday, April 26th, 1996. (Response time: 30 ms) Example for use
Command
07?3SDY9604260597 C R
Station Response number time
Response
April 26th, 1996 (Fri.)
07♯3SDY53 C R Station Response time number
13-16
Sum check code
Sum check code
FRI 05
SAT 06
Page 233
MTM
[JW-1424K, JW-1442K, JW-1624K, and JW-1642K only]
Read out time (hour, minute, second) of clock.
Sec.
Min.
Sec.
Min.
Hour
A S S ・ A D D ? R M T M C C C Command ・ I ・ ・ (H) (L) (H) (L) R Hour
Communication format
Function
Read out time
A S S C ・ A D D ♯ R M T M C C Response ・ I ・ ・ (H) (L) (H) (L) (H) (L) (H) (L) (H) (L) R
Minute (BCD) Second (BCD) Hour/minute/ Hour (BCD) second 00 to 23 00 to 59 00 to 59 Mode 0, Mode 1, Mode 2 Write mode Execution condition PC operation state Stop, Run
Read out time of PC06. (Response time: 10 ms) Example for use
Command
0 6 ? 1 M T M 3 CC R Station Response number time
Response
Sum check code
06♯1MTM0830302A C R Station Response time number
Set time
Sum check code
R
S S C
Sec.
・ ・ A A
Sec.
R
Min.
・ ・ A A
Min.
Set time (hour, minute, second) of clock. Hour
Function
Hour
[JW-1424K, JW-1442K, JW-1624K, and JW-1642K only]
Communication format
STM
8:30:30 AM
13
S S C
D D ? C C Command ・ ・ (H) I S T M (H) (L) (H) (L) (H) (L) (H) (L) R (L) C C D D ♯ Response ・ ・ (H) I S T M (H) (L) R (L)
Hour (BCD) Minute (BCD) Second (BCD) Hour/minute/ second 00 to 23 00 to 59 00 to 59 Mode 1, Mode 2 Write mode Execution condition PC operation state Stop, Run
Set 13:30:00 in the clock of PC07. (Response time: 20 ms) Example for use
Command
07?2STM1330000D C R Station Response number time
Response
13:30:30
07♯2STM50 C R Station Response number time
13-17
Sum check code
Sum check code
Page 234
ACL
Communication format
Function
Correct, run, and stop clock Correct time, run, and stop of clock.
A ・ A D D ? R A C L Command ・ I ・ ・ (H) (L)
Response
Data
[JW-1424K, JW-1442K, JW-1624K, and JW-1642K only]
Data
S S C C C (H) (L) R
S S A ・ ・ A D D ♯ R A C L C C C I ・ ・ (H) (L) (H) (L) R
00: Start clock 01: Stop clock (BCD) 0 to 29 sec.·······Becomes "00" sec. without addition of 1 minute. 8:30 sec. correction 30 to 59 sec.·····Becomes "00" sec. with addition of 1 minute.
Write mode Mode 1, Mode 2 Execution condition PC operation state Stop, Run Stop clock of PC07. (Response time: 20 ms)
Command Example for use
07?3ACL01F6 C R Station Response number time
Response
07♯3ACL73 C R Station Response number time
MPC
13
Sum check code
Monitor operational condition Monitor PC is running or stops.
A S S ・ A D D ? R M P C C C C Command ・ I ・ ・ (H) (L) (H) (L) R S S C C C (H) (L) R
Response
A ・ ・ A D D ♯ R M P C I ・ ・ (H) (L)
Data
0: Run 1: Stop by other optional device 2: Stop by HLT command
Data
Communication format
Function
Stop Sum check clock code
Write mode Mode 0, Mode 1, Mode 2 Execution condition PC operation state Stop, Run Monitor operational condition of PC01. (Response time: 20 ms)
Command Example for use
01?2MPC4E C R Station Response number time
Response
Sum check code
01♯2MPC03A C R Station Response number time
13-18
Sum check code At operation