Sharp JW-21MN manual Basic commands, 10-2

Page 41

10

10-2 Basic commands

Meaning and available memory address ranges of each command are shown in the table below

-Numeric values of each command are command numbers specified by the ME-NET.

-Write mode assignment shows write enabled/disabled to the PC memory. (See command No. F9(H).)

Command

Setting available address range (octal) and notes for use

Write mode

 

 

 

assignment

 

JW20/JW20H

 

JW30H

 

 

 

 

00000 to 15777 (relay)

 

00000 to 15777,

 

 

 

20000 to 75777 (relay)

 

Reading Relay

T-C000 to 777 (TMR/CNT contact

 

 

 

T-C0000 to 0777,

None

20(H)

point)

 

 

T-C1000 to 1777 (TMR/CNT contact)

 

 

 

 

 

Set in units of one points

 

 

 

 

 

 

 

 

Relay start/reset

00000 to 15777 (relay)

 

00000 to 15777

 

 

20000 to 75777 (relay)

1 or 2

30(H)

 

 

Set in units of one points (SET = 1, RESET = 0)

 

 

 

 

 

 

 

 

 

0000 to 1577

 

0000 to 1777, 2000 to 7777

 

 

b0000 to b1777

 

b0000 to b1777, b2000 to b3777

 

 

09000 to 09777, 19000 to 19777

 

09000 to 09777, 19000 to 19777

 

 

29000 to 29777, 39000 to 39777

 

29000 to 29777, 39000 to 39777

 

 

49000 to 49777, 59000 to 59777

 

49000 to 49777, 59000 to 59777

 

Reading register current value

69000 to 69777, 79000 to 79777

 

69000 to 69777, 79000 to 79777

None

24 (H)

89000 to 89777, 99000 to 99777

 

89000 to 89777, 99000 to 99777

 

 

 

E0000 to E1777

 

E0000 to E1777

 

 

 

 

- For details about the file register,

 

 

 

 

see page 8-4.

 

 

 

 

 

 

Can be set to read up to 1024 bytes at one time.

 

 

Write to register 24(H).

 

 

 

 

The allowable address ranges are the same as shown in "Reading the

 

Write to register

register's current value 24(H)."

 

 

 

34(H)

Can be set up to 1024 bytes at one time.

 

 

You must enter a value for the number of bytes that will be written.

 

Write the same data into

The allowable address ranges are the same as shown in "Reading the

1 or 2

register

register's current value 24(H)."

 

 

 

 

 

35(H)

Can be set up to 1024 bytes at one time.

 

Set/reset TMR/CNT

000 to 777

 

000 to 0777, 1000 to 1777

 

32(H)

 

 

 

Set in units of one points (SET = 1, RESET = 0)

 

 

Different with control module and

 

 

 

 

memory module types

 

Different with control module

 

 

- JW-21CU: 000000 to 006777

 

- JW-31CUH/H1: 000000 to 016777

 

 

- JW-22CU: 000000 to 006777

 

- JW-32CUH: 000000 to 036777

 

 

When using memory

 

- JW-32CUH1: 000000 to 036777

 

Read program memory 04(H)

module JW-21MA

 

or 000000 to 076777

None

/21MO/21ME)

 

- JW-33CUH/H1: 000000 to 0076777

 

000000 to 016777

 

- JW-32CUH2/H3: 000000 to 076777,

 

 

(When using memory

 

1000000 to 176777

 

 

module JW-22MA)

 

 

 

 

Can be set up to 512 steps per one reading.

 

 

Data are read out with machine language.

 

 

 

 

 

 

The allowable address ranges are the same as shown in "Reading program

 

Write program memory

memory 04(H).

 

 

 

Can be set up to 512 steps per one writing

2 only

14(H)

This command can be executed only when a PC is stopped operation with

 

 

 

 

"PC operation stop" command, and "write mode specification as 2."

 

Read PC operation status

 

-----

 

E8(H)

 

 

 

 

 

 

Stop PC operation

When this command is executed, the PC cannot be restarted using a support

 

F8(H)

tool.

 

 

 

Restart PC operation

This command is effective only when the PC is stopped operation by the "PC

 

operation stop" command. When the PC stops operation with another reason,

 

P8(H)

 

the PC cannot restart operation with this command.

None

 

 

 

 

 

Read write mode status

 

-----

 

 

E9(H)

 

 

 

 

 

 

Assign write mode

Prohibit writing all PC memory --- 0

 

 

 

Allows writing to PC data memory --- 1

 

F9(H)

 

Allows writing to PC all memory --- 3

 

Choose any of these.

 

 

 

 

 

 

 

 

Read manufacturer code

The JW-21MN returns manufacturer code (CL: SHARP), and model code (A:

 

6F(H)

PC).

 

 

 

10-2

Image 41
Contents JW-21MN JW-21MN Wiring Compel Safety PrecautionsInstallation Use Maintenance ProhibitME-NET Module JW-21MN Table of contents Description for Computer Link Operation 10-1 to Setting of Switches and Parameter 11-1 toErrors and Countermeasures 12-1 to Appendix 16-1 to Support Tools 14-1 to Specifications 15-1 to13-1 Computer link function Features and FunctionsData link function Wiring InstallationConnector Treatment MaintenanceStatic electricity Allocation of relay numberJW20H JW-21MN JW-21MN JW30H System ConfigurationFront view Name and Function of Each PartRemarks InstallationInstallation procedure Name Model Maker Processing of CablesProcessing cable end Removal of coating, external conductor, and insulator Fine adjustment of blade cutting depthCutting 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 contactConductivity test Fixing the connectorInsulation test Relaying of trunk cables Wiring MethodCable trunk and branch lines 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 map against JW20/JW20H Memory Address on the ME-NETMemory address for data links 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 linkRegister link Setting item Set locationData link Save memory function 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 PCCase of mounting 4 sets of JW-21MN Multiple installation of the JW-21MNExpansion of network Hierarchical link Optional commands Basic commandsDescription for Computer Link Operation Computer link function10-2 Basic commandsCommunication format, basic pattern Optional commands10-3 Read free memory size Write mode assignment None Communication formatMonitor TMR, CNT, and MD 10-410-5 Reading PC modeSetting PC mode 10-6 Reading system memoryWriting system memory Write mode assignment 1 or Communication format Setting dateReading date 10-710-8 Setting timeReading time 10-9 Correct clock timeMonitor step status JW20/JW20H only Read the optional parameters Write mode assignmentSet the optional parameters 10-1010-11 Read the special I/O parametersSet the special I/O parameters 10-12 Release the secret function, register password JW30H onlySet the secret function JW30H only 10-13 Check the secret function JW30H only10-14 Response on error11-1 Setting of Switches and ParameterOperation procedure 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 + hMaser station Slave station Standard Save memory Example for setting11-10 11-11 When master station PC is JW20/JW20H11-12 When master station PC is JW30H11-13 Setting procedureStop operation of data link HEX hexadecimal, byte 11-14Example Stop operation of data link HEX hexadecimal, byte 11-15 Data link function setting HEX hexadecimal, byteSet number of connecting stations DCM decimal, byte 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-2111-22 Setting itemContents 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-21MN14-1 Support ToolsRecord and load by ladder software JW-92SP, JW-50SP Record 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-215-3 Computer link specificationsOutside dimensional drawings 16-1 Maintenance and checkAppendix 16-2 Recovery method at communication errorsCheck flow chart 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-7Master station Table of parameter memory16-8 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 setting16-16 Parameter setting by remote functionWhen used with a computer link Alphabetical Index Operation procedure Waterproof and insulation processing of connectors