Sharp JW-21MN manual Reading system memory, Writing system memory, 10-6

Page 45

10

[5] Reading system memory

Read the specified number of bytes of data from the specified address in system memory. [Write mode assignment]: None

[Communication format]

 

 

Command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

 

 

 

"C"

 

"L"

 

"A"

 

 

CMD

 

SUB

 

ATTR

SEG

 

 

 

 

SADR

 

 

 

N

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response

 

"+"

 

 

ACK

 

 

"C"

 

"L"

 

 

"A"

 

 

CMD

 

 

SUB

 

ATTR

 

SEG

 

 

 

SADR

 

 

 

 

N

 

 

D1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DN

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

---

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

 

 

 

 

Data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Details

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMD

 

 

 

 

43(H)

 

Function code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUB

 

 

 

 

44(H)

 

Sub code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SEG

 

 

 

 

08(H)

 

Read out segment

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SADR

 

0000 to 00FF(H)

 

Read out address #000 to #377(8) (2 byte data, in order of L and

 

 

 

 

 

 

H)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

N

 

0001 to 0100(H)

 

Number of read out bytes (2 byte data, in order of L and H)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D1 to DN

 

See the example

Reading data of system memory (1 byte data x number of

 

 

 

 

reading data bytes)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Ex.] To read data from system memory addresses #201 and #202

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(201(8) = 81(H), Data in cells: Hexadecimal notation)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command

2B

 

43

 

 

 

4C

 

41

43

44

00

 

 

08

 

 

81

 

00

 

02

 

 

00

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response

"+"

 

"C"

 

"L"

"A"

CMD

SUB

ATTR

 

SEG

 

SADR

 

N

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2B

 

00

 

 

 

43

 

 

4C

41

43

44

 

 

00

 

 

08

 

81

 

00

 

 

02

 

00

01

01

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

 

 

 

 

 

CMD

SUB

 

ATTR

 

SEG

SADR

 

N

 

#201

#202

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[6] Writing system memory

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Read data

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write the specified number of bytes of data from the specified address in system memory. [Write mode assignment]: 2 (When the PC has been stopped with a "halt PC operation F8(H)"

command)

[Communication format]

 

Command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

"C"

"L"

 

"A"

CMD

SUB

ATTR

SEG

SA

DR

 

N

 

 

 

D1

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

DN

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

ACK

"C"

 

"L"

"A"

CMD

SUB

ATTR

SEG

SA

DR

 

 

N

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

 

 

Data

 

 

 

 

 

 

 

Details

 

 

 

 

 

 

 

 

 

 

 

 

CMD

 

 

43(H)

 

Function code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUB

 

 

54(H)

 

Sub code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SEG

 

 

08(H)

 

Write segment

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SADR

0000 to 00FF(H)

Write address #000 to #377(8) (2 byte data, in order of L and H)

 

 

 

 

 

N

0001 to 0100F(H)

Number of writing bytes (2 byte data, in order of L and H)

 

 

 

 

 

 

 

 

D1 to DN

See the example

Write data of system memory (1 byte data x number of write

data bytes)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Ex.] To write data 01(H), 01(H) to data from system memory addresses #201 and #202 (201(8) = 81(H), Data in cells: Hexadecimal notation)

Command

 

2B

 

43

4C

41

 

43

 

54

 

00

 

08

 

81

 

00

 

02

00

01

01

 

"+"

 

"C"

"L"

"A"

 

CMD

 

SUB

 

ATTR

 

SEG

 

SADR

 

N

#201

#202

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Write data

 

2B

00

43

4C

41

43

54

00

08

81

 

00

 

02

00

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

 

 

CMD

SUB

 

ATTR

 

SEG

 

SADR

 

 

N

 

 

 

 

---

---

10-6

Image 45
Contents JW-21MN JW-21MN Safety Precautions InstallationWiring Compel Use Maintenance ProhibitME-NET Module JW-21MN Table of contents Setting of Switches and Parameter 11-1 to Errors and Countermeasures 12-1 toDescription for Computer Link Operation 10-1 to Support Tools 14-1 to Specifications 15-1 to 13-1Appendix 16-1 to Features and Functions Data link functionComputer link function Wiring InstallationConnector Treatment MaintenanceStatic electricity Allocation of relay numberJW20H JW-21MN JW-21MN JW30H System ConfigurationFront view Name and Function of Each PartInstallation Installation procedureRemarks Name Model Maker Processing of CablesProcessing cable end Fine adjustment of blade cutting depth Cutting of coating, external conductor, and insulatorRemoval of coating, external conductor, and insulator Processing of cable end Display of blade settingConnector ME-GP-01 Processing procedure Insert a sleeve Connector crimping procedureRequired tools Hand-held crimping tool Crimping contactFixing the connector Insulation testConductivity test Wiring Method Cable trunk and branch linesRelaying of trunk cables Cable wiring procedure in control panel Page Branch connector Waterproof and insulation processing of connectorsStraight connector RemarksCheck after wiring Wiring of cables at outside control panelsStation number of the additional station Branching methodReason Memory Address on the ME-NET Memory address for data linksMemory address map against JW20/JW20H JW30H address ME-NET address Memory address map against JW30HJW20/20H ME-NET address Capacity Memory addresses for computer linksJW30H address ME-NET address Capacity Remarks Communication method Description for Data Link OperationData link Standard function Relay linkSetting item Set location Data link Save memory functionRegister link Required transmission time Required transmission time and communication delay timeCommunication delay time An example of synchronized transfer by OUT instruction Data transmission between master PC and slave PCMultiple installation of the JW-21MN Expansion of networkCase of mounting 4 sets of JW-21MN Hierarchical link Optional commands Basic commandsDescription for Computer Link Operation Computer link function10-2 Basic commands Optional commands 10-3 Communication format, basic pattern Read free memory size Write mode assignment None Communication formatMonitor TMR, CNT, and MD 10-4Reading PC mode Setting PC mode10-5 Reading system memory Writing system memory10-6 Write mode assignment 1 or Communication format Setting dateReading date 10-7Setting time Reading time10-8 Correct clock time Monitor step status JW20/JW20H only10-9 Read the optional parameters Write mode assignmentSet the optional parameters 10-10Read the special I/O parameters Set the special I/O parameters10-11 Release the secret function, register password JW30H only Set the secret function JW30H only10-12 10-13 Check the secret function JW30H only10-14 Response on errorSetting of Switches and Parameter Operation procedure11-1 Mode switch Mode Switch setting of master station and slave stationModule No. switch Unit no 11-2Termination resistance switch LT Station number switch STA no11-3 Reference Need for the termination resistance11-4 Shield ground switch LGSetting contents of master station parameters Value H 11-6Parameter for setting in slave station Parameter for setting in master stationCommunication area map 11-711-8 11-9 + hExample for setting 11-10Maser station Slave station Standard Save memory 11-11 When master station PC is JW20/JW20H11-12 When master station PC is JW30H11-13 Setting procedure11-14 Example Stop operation of data link HEX hexadecimal, byteStop operation of data link HEX hexadecimal, byte Data link function setting HEX hexadecimal, byte Set number of connecting stations DCM decimal, byte11-15 Set top address of register link area on the master station 11-16Set in parameter addresses 005000 to 11-1711-18 Set connection status of slave station Bit pattern, byte 11-1911-20 PC operation 11-21Setting item Contents11-22 When PC is JW20/JW20H Setting range of flag areaWhen PC is JW30H 11-2311-24 11-25 Turn on the power of slave station PC Connect support tools11-26 11-27 11-28 Indication lamps Errors and Countermeasures12-1 Details MeasureRemark Flag12-3 Case of a master stationCommunication monitor flag Operation condition monitor flag12-4 Case of slave station 01 to12-5 Monitor operation condition by each station PC12-6 Storage of error codeSystem memory #160 to 167 self diagnosis error code System memory #170 to 177 option module error codeSystem memory #150 monitor error switch number 12-712-8 Error history13-1 Replacement of the JW-21MNSupport Tools Record and load by ladder software JW-92SP, JW-50SP Record14-1 14-2 LoadLoad to the personal computer Stop operation of the JW-21MNGeneral specifications SpecificationsCommunication specifications SpecificationStandard function Specifications Data link specificationsSave memory function Specifications 15-2Computer link specifications Outside dimensional drawings15-3 Maintenance and check Appendix16-1 Recovery method at communication errors Check flow chart16-2 16-3 Check cable/connectorCause Countermeasure 16-4007764 to 16-5Check items of cables and connectors Switches required check in the JW-21MN16-6 Other casesIdentify the error station Check the errors timingWhen identification of the cause is difficult 16-7Table of parameter memory 16-8Master station 16-9 Set contents Setting method value, example16-10 16-11 Slave station 01 to 16-1216-13 Special functions unique to the JW-21MNRemote programming and remote monitor Support tool Opposite module Connection moduleFunction Standard network connection 16-14Expansion network connection Operation example16-15 Network settingParameter setting by remote function When used with a computer link16-16 Alphabetical Index Operation procedure Waterproof and insulation processing of connectors