Sharp JW-21MN Reading date, Setting date, 10-7, Write mode assignment 1 or Communication format

Page 46

[7] Reading date

Read the year, month, date, and day of week. However, when JW-21CU or JW-31CUH/H1 is used as PC, they do not have clock function and the reading will be meaningless.

[Write mode assignment]: None

[Communication format]

 

 

Command

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

 

"C"

"L"

 

"A"

 

CMD

SUB

ATTR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

ACK

"C

 

"L"

 

"A"

CMD

SUB

ATTR

Y

D

DW

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

 

Data

 

 

 

 

 

 

 

Details

 

 

 

 

 

CMD

 

45(H)

Function code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SUB

 

A2(H)

Sub code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

00 to 99(H)

00 to 99 year (lower two digits of western year)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

M

01 to 12(H)

January to December

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

D

01 to 31(H)

1st to 31st day of month

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Day of week (Sunday: 00(H), Monday: 01(H), Tuesday: 02(H),

 

 

DW

00 to 06(H)

Wednesday: 03(H), Thursday: 04(H), Friday: 05(H), Saturday:

 

 

 

 

 

 

 

06(H))

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Ex.] Reading out April 25, 1996 (Thursday). (The data in cells are in hexadecimal notation)

Command

2B

43

4C

41

45

A2

00

 

 

 

 

 

 

 

"+"

"C"

"L"

"A"

CMD

SUB

ATTR

 

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

2B

00

43

4C

41

45

A2

00

96

04

25

03

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

CMD

SUB

 

1996

April

25

Thursday

[8] Setting date

Set year, month, day, and day of week. However, when JW-21CU or JW-31CUH/H1 is used as PC, these PC do not have clock function and date cannot be set.

[Write mode assignment]: 1 or 2

[Communication format]

 

Command

 

 

"+"

 

"C"

 

 

"L"

 

"A"

 

CMD

 

SUB

ATTR

 

Y

 

 

M

 

D

DW

 

 

 

 

 

 

 

 

 

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

 

ACK

 

"C"

 

"L"

 

"A"

 

CMD

 

SUB

ATTR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Symbol

 

 

 

 

Data

 

 

 

 

 

 

 

 

Details

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

CMD

 

 

 

 

45(H)

Function code

 

 

 

 

 

 

 

 

 

 

 

(Symbols other than the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

left: See page 10-3.)

 

SUB

 

 

 

 

B2(H)

Sub code

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y, M, D, DW

 

Same as the "Reading out date" above.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

[Ex.] Set May 1st (Wednesday), 1996 (Data in frame: Hexadecimal)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Command

 

2B

 

43

 

 

4C

 

41

 

 

45

B2

00

 

96

 

05

 

01

 

02

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

"+"

 

 

"C"

 

 

"L"

 

"A"

 

CMD

SUB

ATTR 1996

May

1

 

Wednesday

Response

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

2B

 

00

 

 

43

 

4C

 

 

41

45

 

B2

 

00

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

ACK

 

 

 

 

 

 

 

 

 

CMD

SUB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

10

10-7

Image 46
Contents JW-21MN JW-21MN Installation Safety PrecautionsWiring Compel Maintenance Prohibit UseME-NET Module JW-21MN Table of contents Errors and Countermeasures 12-1 to Setting of Switches and Parameter 11-1 toDescription for Computer Link Operation 10-1 to 13-1 Support Tools 14-1 to Specifications 15-1 toAppendix 16-1 to Data link function Features and FunctionsComputer link function Installation WiringConnector Static electricity MaintenanceTreatment Allocation of relay numberSystem Configuration JW20H JW-21MN JW-21MN JW30HName and Function of Each Part Front viewInstallation procedure InstallationRemarks Processing of Cables Name Model MakerProcessing cable end Cutting of coating, external conductor, and insulator Fine adjustment of blade cutting depthRemoval of coating, external conductor, and insulator Display of blade setting Processing of cable endRequired tools Hand-held crimping tool Connector crimping procedureConnector ME-GP-01 Processing procedure Insert a sleeve Crimping contactInsulation test Fixing the connectorConductivity test Cable trunk and branch lines Wiring MethodRelaying of trunk cables Cable wiring procedure in control panel Page Straight connector Waterproof and insulation processing of connectorsBranch connector RemarksWiring of cables at outside control panels Check after wiringBranching method Station number of the additional stationReason Memory address for data links Memory Address on the ME-NETMemory address map against JW20/JW20H Memory address map against JW30H JW30H address ME-NET addressMemory addresses for computer links JW20/20H ME-NET address CapacityJW30H address ME-NET address Capacity Remarks Data link Standard function Description for Data Link OperationCommunication method Relay linkData link Save memory function Setting item Set locationRegister link Required transmission time and communication delay time Required transmission timeCommunication delay time Data transmission between master PC and slave PC An example of synchronized transfer by OUT instructionExpansion of network Multiple installation of the JW-21MNCase of mounting 4 sets of JW-21MN Hierarchical link Description for Computer Link Operation Basic commandsOptional commands Computer link functionBasic commands 10-210-3 Optional commandsCommunication format, basic pattern Monitor TMR, CNT, and MD Write mode assignment None Communication format Read free memory size 10-4Setting PC mode Reading PC mode10-5 Writing system memory Reading system memory10-6 Reading date Setting dateWrite mode assignment 1 or Communication format 10-7Reading time Setting time10-8 Monitor step status JW20/JW20H only Correct clock time10-9 Set the optional parameters Write mode assignmentRead the optional parameters 10-10Set the special I/O parameters Read the special I/O parameters10-11 Set the secret function JW30H only Release the secret function, register password JW30H only10-12 Check the secret function JW30H only 10-13Response on error 10-14Operation procedure Setting of Switches and Parameter11-1 Module No. switch Unit no Switch setting of master station and slave stationMode switch Mode 11-211-3 Station number switch STA noTermination resistance switch LT Reference Need for the termination resistanceShield ground switch LG 11-4Setting contents of master station parameters 11-6 Value HCommunication area map Parameter for setting in master stationParameter for setting in slave station 11-711-8 + h 11-911-10 Example for settingMaser station Slave station Standard Save memory When master station PC is JW20/JW20H 11-11When master station PC is JW30H 11-12Setting procedure 11-13Example Stop operation of data link HEX hexadecimal, byte 11-14Stop operation of data link HEX hexadecimal, byte Set number of connecting stations DCM decimal, byte Data link function setting HEX hexadecimal, byte11-15 11-16 Set top address of register link area on the master station11-17 Set in parameter addresses 005000 to11-18 11-19 Set connection status of slave station Bit pattern, byte11-20 11-21 PC operationContents Setting item11-22 When PC is JW30H Setting range of flag areaWhen PC is JW20/JW20H 11-2311-24 Turn on the power of slave station PC Connect support tools 11-2511-26 11-27 11-28 12-1 Errors and CountermeasuresIndication lamps Details MeasureFlag RemarkCommunication monitor flag Case of a master station12-3 Operation condition monitor flagCase of slave station 01 to 12-4Monitor operation condition by each station PC 12-5Storage of error code 12-6System memory #150 monitor error switch number System memory #170 to 177 option module error codeSystem memory #160 to 167 self diagnosis error code 12-7Error history 12-8Replacement of the JW-21MN 13-1Record and load by ladder software JW-92SP, JW-50SP Record Support Tools14-1 Load to the personal computer Load14-2 Stop operation of the JW-21MNCommunication specifications SpecificationsGeneral specifications SpecificationSave memory function Specifications Data link specificationsStandard function Specifications 15-2Outside dimensional drawings Computer link specifications15-3 Appendix Maintenance and check16-1 Check flow chart Recovery method at communication errors16-2 Check cable/connector 16-316-4 Cause Countermeasure16-5 007764 to16-6 Switches required check in the JW-21MNCheck items of cables and connectors Other casesWhen identification of the cause is difficult Check the errors timingIdentify the error station 16-716-8 Table of parameter memoryMaster station Set contents Setting method value, example 16-916-10 16-11 16-12 Slave station 01 toRemote programming and remote monitor Special functions unique to the JW-21MN16-13 Support tool Opposite module Connection moduleExpansion network connection 16-14Function Standard network connection Operation exampleNetwork setting 16-15When used with a computer link Parameter setting by remote function16-16 Alphabetical Index Operation procedure Waterproof and insulation processing of connectors