The text of a manual · part 10 of 37
Sharp Programmable Controller New Satellite JW10 User's Manual: Chapter 7 Memory Configuration of the JW10, pages 55 to 63
Pages 55 to 63 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 55
7-3
System memory The system memory is used to set all kinds of JW10 functions and monitor error contents and the like of JW10.
[1] Table of system memory • The system memory has a capacity of 256 bytes which occupy an address area from #000 to #377. • The following are memory numbers opened to the user, but the other memory numbers are reserved area, and data should not be written there. • System memory numbers are expressed with octal. By setting system memory (#115), indication of program address on a support tool such as JW-13PG can be chosen from oct, dcml, or hex. (1) System memories used for monitoring each status of JW10.
7
System memory number #030, #031
Monitoring scan time minimum value
7・11
#032, #033
Monitoring current value of scan time
7・11
#034, #035
Monitoring scan time maximum value
7・11
#041
System ROM version
7・11
#043
Model code of basic module
7・11
#052, #053
Monitor the user program's error address
7・12
#054
Monitor the system memory's error address
7・12
Contents
See page
#160 to #167 Diagnostic error code
7・13
#257
7・18
BCC check code
(2) System memories used for setting each function of JW10. System memory number #055
Setting run/stop in program check error
00(H)
7・12
#114
Select notation of address and label numbers
00(H)
7・13
#115
Setting numeric figure expression system for address and label numbers
00(H)
7・13
#136
Setting the model of support tool
00(H)
7・13
#201
TMR reset condition
00(H)
7・14
#202
CNT reset condition
00(H)
7・14
#203
Mode setting of the high-speed counter
00(H)
7・14
#206
Setting output status at PC stopped operation
00(H)
7・14
#210
Setting mode of analog input module (JW-14AD)
00(H)
7・14
#211
Setting averaging function of analog input module (JW-14AD)
00(H)
7・15
#212
Setting mode of analog output module (JW-12DA)
00(H)
7・15
#226
Setting computer link transfer specifications of the MMI port
00(H)
7・15
#227
Setting computer link station number of the MMI port
000(8)
7・15
#230,#231
Setting the latched relay area
000700(8)
7・16
#234
Setting communication mode of communication port
00(H)
7・16
#235
Setting number of slave stations connected to data link, remote I/O
000(D)
7・16
#236
Setting transfer specifications of the communication port
00(H)
7・17
#237
Setting station number of communication port
000(8)
7・17
#244
Setting enable/disable 10 ms timer interruption
00(H)
7・17
Setting ROM operation mode
00(H)
7・18
#255
Contents
Initial value See page
Note: If a value other than the setting range is attempted to be set in the system memory, the module emits system memory error. (See the "8-3 Self-diagnosis.") 7-10
Page 56
[2] Description of system memory • Scan time minimum value is stored in a BCD value. Monitoring scan #030 #031
[Example] If the BCD value monitoring was 0020, the scan time minimum value is 20 ms.
time minimum
0 0 value
2 0 Monitored with #030 (Lower digit) Monitored with #031 (Upper digit)
• Scan time current value is stored in a BCD value. [Example] If the BCD value monitoring was 0050, the current scan #032
Monitoring current
#033 value of scan time time is 50 ms. 0 0
5 0 Monitored with #032 (Lower digit) Monitored with #033 (Upper digit)
• Scan time maximum value is stored in a BCD number. [Example] If the BCD value monitoring was 0100, the current scan #034
Monitoring scan
#035 time maximum
7 time is 100 ms. 0 1
0 0 Monitored with #034 (Lower digit)
value
Monitored with #035 (Upper digit) • The scan time measurement starts when the power is turned ON. • When the operation is changed from operation mode to stop mode (program mode), the latest scan time minimum and maximum values are stored. When the operation is changed from stop mode to operation mode, the existing minimum and maximum values are cleared and newly detected values are stored. • A scan error allowance is ±1 ms.
• Version of system ROM is stored in hexadecimal notation. ReRRRRRRR [Example] #041 0 0 0 1 0 0 1 0 The left figures mean version 1.2. #041
1
System ROM version
2
(Reference) Setting values at address #055 is effective only with modules that have version 1.4 or later ROM code. The JW-14AD and/or JW-12DA can only be connected to modules that have version 2.0 or later ROM code. • Model name code of the basic module is stored in hexadecimal notation.
#043
Model code
Basic module
Model code
JW-1324K/1342K
13(H)
JW-1424K/1442K
14(H)
JW-1624K/1642K
16(H)
Rrrrrrrrrrr 7-11
Page 57
• If there was the error code "21(H)" (parity error) or "24(H)" (instruction code check error) stored in the system memory #160 after diagnosis, you will know the address in error in the user program when the system memory is monitored. • The error address is represented by an octal notation, which will be as shown below. #053 #052 #053
#052
Monitor the user program's error address
6th digit
5th digit
4th digit
3rd digit
1st digit
2nd digit
[Example] The bit pattern below indicates an error in the user program address 1300 (octal). #052
#053
7
0 0
0 0
0
0
0
0
1
1 1
0
1
3
0 0 0
0
0
0
0
0
• If there was the error code "23(H)" (system memory error) stored in the system memory #160 after diagnosis, you will know the address in error of system memory that user is setting when the system memory is monitored. • The error address is represented by an octal notation, which will be as shown below. #054 Monitor the system #054 memory's error
3rd digit address [Example]
1st digit
2nd digit
#054 1 0 0 0 2
0
0
0
0
1
1
Set reset condition of TMR in #201. Set either of 00(H) or 01(H). If 02(H), out of the setting range, is set, 23(H) is stored in #160, and its address 201 is stored in #054. • If the PC detects an error in the program check (see page 9・121), you must select whether to continue or to execute an error stop when the PC switches from the stop mode (program mode ) to the operation Set run/stop in #055 prorgam check error mode (monitor, change mode). Setting value 00(H) 55(H)
Contents Stop in error Run in error
• Initial value is 00(H). (Stop in error) Note : This setting can only be performed on modules that have version 1.4 or later ROM code. Modules with version 1.3 or earlier ROM code will stop the PC operation when it detects an error, regardless of this setting. 7-12
Page 58
• Select which notation is used for expressing application instruction constant using a support tool such as JW-13PG. • Set notation of instruction after classifying them into three. #114 7 6
5
4
3
2
1
0
0 0
#114 tion constants.
Contents
00
Initial value (Note)
01
Octal display
10
Decimal display
A-1 group A-2 group
Select notation of application instruc-
Setting value of each 2 bits
Hexadecimal display 11 A-3 group Note: Initial value is the notation described in "Description of each application instruction" in page 9・28 to 116. A-1 group
Transfer/compare instructions with constants F-01, F-01W, F-07, F-07W, F-08, F-08W F-71, F-71W, FC12, FC12W
A-2 group
Instructions having constants in bit pattern specification FC13, FC13W, FC14, FC14W, FC18, FC18W Instructions having constants in byte count specification/
A-3 group frequency specification instruction F-70, F-70W, F-74, F-74W, F-144
• Select which notation is used for expressing each address of data memory (relay, TMR/CNT, register number), program memory, and system memory using a support tool such as JW-13PG.
#115 7 6
5
4
3
2
1
0
0 0 #115
Select notation of
Data memory address and label
Program memory System memory numbers
Setting value of each 2 bits
Contents
00
Initial value (Note)
01
Octal display
10
Decimal display
11
Hexadecimal display
Label
Note: Initial value is octal. [Example] Choose notation for addresses of program and system memory. (Data memory and label is initial value) Example of Example of system program memory memory address address 2777 #115
Notation
Value of #115
Octal
00(H), 04(H)
Decimal
08(H)
#077
1535
Hexadecimal
0C(H)
#04D
05FF
• Select the type of support tool to be connected. #136
Setting the model of support tool
Setting value 00(H) 02(H)
Contens Connected with other than JW-2PG Connected with JW-2PG
• Initial value is 00(H). (Connected with other than JW-2PG)
7-13
7
Page 59
• The error code will be stored when an error is encountered as a result #160 to #167 of diagnosis. Diagnostic error code
• #160 to #167 function as a shift register which will be able to store 8 errors. For details, refer to "8-3 Self diagnosis." • Error codes remain in system memory after the cause of the error is removed. To clear the error code, write "0" using support tool. • Used to program the state of the TMR instruction upon power recov-
#201
TMR reset condition ery. Setting value
Contents
00(H)
Reset at power recovery.
01(H)
Store the state at power recovery.
• Initial value is 00(H). (Reset at power recovery.) • Used to program reset input condition for CNT instruction, each appli-
#202
CNT reset condition
7 cation instruction of F-60, F-60w, F-62 and F-62w. Setting value Contents 00(H)
Reset when ON
01(H)
Reset when OFF
• Initial value is 00(H). (Reset when ON) • Set mode of the high-speed counter which is integrated inside of the basic module.
#203
Mode setting of the high-speed counter
Setting value
Contents
00(H)
Not in use (00000 to 00003 are normal input)
01(H)
Mode 1 (Single-phase rising pulse input: 2 points)
02(H)
Mode 2 (90˚ phase difference 2-phase signal: 1 point)
• Initial value is 00(H). (Not in use) • Select output statues when the PC is in stop mode or stopped operation due to detection of an error using self-diagnosis function. Setting output #206 status at PC stopped operation
Setting value
Contents
00(H)
Reset (all output are OFF)
55(H)
Latch
• In case the module is used as a remote I/O slave station, the module sets output status when an error has occurred in its own station (remote I/O slave station). • Initial value is 00(H). (Reset.)
Setting mode of analog input module #210
JW-14AD [JW-1424K/ 1442K/1624K/ 1642K only]
• Set operation mode of analog input module JW-14AD. Setting Operation Analog input Digital value mode Voltage input Current input value Mode 1 0 to 4000 (12 bits binary) 01(H) 0 to 12V Mode 2 02(H) 0 to 5V 0 to 20mA 0 to 2000 (11 bits binary) Mode 3 03(H) 1 to 5V 4 to 20mA 0 to 2000 (11 bits binary) 00(H) JW-14AD dose not work.(Cannot convert analog to digit) • JW-14AD has 4 channels, but above setting is applied 4 channels all. • Initial value is 00(H).(Cannot convert analog to digit.) 7-14
Page 60
• You can enable/disable the averaging function when the JW-14AD anaSetting averaging function of #211 analog input module JW-14AD log input module is used. Setting value 00(H) 01(H)
Contents Averaging disable Averaging enable
• JW-14AD has 4 channels, but above setting applies all channels. • Initial value is 00(H). (Averaging disable.)
Setting mode of analog output module #212
JW-12DA [JW-1424K/
• Set operation mode of analog output module JW-12DA. Analog output Setting Operation Digital value Voltage output Current output value mode 01(H) Mode 1 0 to 4000 (12 bits binary) 0 to 10VDC 0 to 20mA 02(H) Mode 2 0 to 2000 (11 bits binary) 0 to 5VDC 4 to 20mA 03(H) Mode 3 0 to 2000 (11 bits binary) 1 to 5 VDC 00(H) JW-12DA dose not work.(Cannot convert digit to analog)
1442K/1624K/ 1642K only]
• JW-12DA has 2 channels, but above setting is applied 2 channels all. • Initial value is 00(H). (Cannot convert digit to analog.) • Set transfer specifications when the MMI port is used with computer link. • Set bit D0 to D7 on #226. D7 D6 D5 D4 D3 D2 D1 D0 #226 0 Transfer rate (300 to 38400 bit/s) Parity (none, odd, even) Stop bit (1 bit, 2 bits)
Setting computer
Data length (7 bits, 8 bits)
link transfer #226 specifications of the MMI port
D7 Data length D5 Stop bit 0 1 bit 0 7 bits 1 2 bits 1 8 bits
D4 D3 Parity D2 D1 D0 Transfer rate (bit/s) 1 1 1 0 0 None 38400 0 0 0 0 1 Odd 19200 0 0 1 1 0 Even 9600 1 1 Disable 0 1 0 4800 0 1 1 2400 1 0 0 1200 1 0 1 600 1 1 0 300
• Initial value is 00(H). (19200 bits/s, no parity bit, 1 stop bit, and 7 bits data length.) Setting computer #227 link station number of MMI port
• When the MMI port is used in the computer link mode, you must set station number of this port. • Since the connection of MMI port is performed by 1:1 basis, the station number of this port should be set to "001(8)". • Initial value is 000(8).
7-15
7
Page 61
• Used to increase/decrease latched relay area from the initial condition. • Latched relays restore before power failure status at reinput of power from power failure. • Set with 8 points as unit. Set numeric values by setting byte address with octal. • Setting value is 0000 to 1577(8). Example: To assign it to the latched relay area from 02000 (コ0200 to コ1577) #230
#231 0 0
#230
Setting the latched
#231 relay area
0
0
0
0
1 0
0 0
0
0
0
= 80 [#230 #231 = 00 ]
0
(H) (H)
0 2 0 0 • Initial condition is that relays from 07000 (コ0700 to コ1577) are set as latched relay area. #231 0 0
7
0 0
0 0
0
0
0
#230 1
1 1
0 0
0
0
0
= C0 [#230 #231 = 01 ]
0
(H) (H)
0 7 0 0 See page 7・2 "Byte address of relay area" for byte address. #230 = 80(H) #231 = 00(H)
#230 = C0(H) #231 = 01(H)
00000
00000
01777 02000 06777 07000
Latched relay
Latched relay (Initial condition) 15777
15777
• Set communication mode of communication port. Setting value Communication mode
#234
Setting communi-
00(H)
Computer link cation mode of
01(H)
Data link communication
02(H)
Remote I/O port • Initial value is 00(H). (Computer link) Note: When #234 = 02(H) and #237 ≠ 000(8), remote I/O slave station is selected and program operation is disabled. • When the communication port is used as data link or remote I/O (#234 = 01(H) or 02(H)), and the module is data link master station or Setting number of slave stations #235 connected to data link, remote I/O remote I/O master station, set number of connected slave stations. Function Data link master station
Setting value 001 to 007(D)
Remote I/O master station 001 to 004(D) • Initial value is 000(D). 7-16
Page 62
(1) In case of computer link • Set transfer specifications in case of using the communication port for computer link (#234 = 00(H)). • Set bit D0 to D7 on #236. #206
D7 D6 D5 D4 D3 D2 D1 D0 0 Transfer rate (300 to 38400 bits/s) Parity (none, odd, even) Stop bit (1 bit, 2 bits)
D7 Data length D5 Stop bit 0 0 7 bits 1 bit 8 bits 1 1 2 bits #236
Set transfer specifications of the communication port • Initial value is 00(H).
Data length (7 bits, 8 bits) D4 D3 Parity D2 D1 D0 Transfer rate (bit/s) 1 1 1 0 0 None 38400 0 0 0 0 1 Odd 19200 0 0 1 1 0 Even 9600 1 1 Disable 0 1 0 4800 0 1 1 2400 1 0 0 1200 1 0 1 600 1 1 0 300
(19200 bits/s, no parity bit, 1 stop bit, and 7 bits data length.) (2) In case of data link and remote I/O • Set transfer rate in case of using the communication port for data link or remote I/O (#234 = 01(H), 02(H)) Setting value Transfer rate 00(H) 76800 bits/s 01(H)
Total extension distance 500 m max.
38400 bits/s
1 km max.
• Initial value is 00(H). (76800 bits/s) • Set station number of the communication port.
#237
Slave station
Communication function Master station Computer link, 001(8) to 077(8)
number of commu-
Data link
000(8)
001(8) to 007(8)
nication port
Remote I/O
000(8)
001(8) to 004(8)
Setting station
• Initial value is 000(8). • Set enable/disable 10 ms timer interruption. • See page 8・6 "8-2 Interruption function" concerning timer interrup#244
Set enable/disable tion.
10 ms timer inter-
Setting value ruption
00(H)
Contents Timer interruption prohibited
01(H)
Timer interruption allowed
• Initial value is 00(H). (Timer interruption prohibited)
7-17
7
Page 63
• Setting ROM area at ROM operation. Setting value #255
Registerable area to ROM
Setting ROM
00(H)
RAM operation (not ROM operation)
operation mode
44(H)
Program memory, system memory (#200 to #377)
[JW-1424K/1442K/
45(H)
Program memory, system memory (#200 to #377)
1624K/1642K only]
Register (39000 to 39777) • Initial value is 00(H). (RAM operation)
#257
BCC check code
• The JW10 automatically computes BCC check code for the contents of system memory #200 to #256.
7
7-18