Sharp JW-21MN manual Description for Data Link Operation, Communication method, Relay link

Page 33

Chapter 9: Description for Data Link Operation

The data link function is used to send and receive ON/OFF signals (relay link) and data (register link) between modules by assigning one module from PCs or FA devices as the master station and other units as slave stations in the satellite net system. Up to 64 sets of PCs and FA devices can be connected in the satellite net.

Each station sends data in its sending area cyclically and stores data received from other stations in its receiving area. For the JW-21MN to execute automatically these sending and receiving procedures, a special program for communications is required.

When the JW-21MN is assigned as a slave station, it has the standard function and save memory function for data link, but the data contents for receiving from other stations is different between these two functions. (When the JW-21MN is used as a master station, only the standard function is available.) [When all of a master station and slave stations are JW-21MN]

- Master station

 

 

 

 

Data link (Standard function) Receiving data of all of the relay link area and

 

 

 

 

 

 

 

 

 

 

all of the register link area of all the stations.

- Slave station

 

 

 

Data link (Standard function)

 

 

 

 

 

 

 

 

Data link (Save memory function)

 

In order to effectively use the

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

memory, unify a partial data area or

 

 

 

 

 

 

 

 

sending/receiving address (program)

 

 

 

 

 

 

 

 

of slave stations.

For the standard function and the save memory function of the JW-21MN, see page 15-2.

9-1 Communication method

[1] Data link (Standard function)

Each station cyclically sends and receives ON/OFF signals and data of the relay link area and register link area set to a master station parameter.

(1)Relay link

Mainly used for sending and receiving ON/OFF information

[Example] In the case of sending 1-byte data from a master station and slave stations 01 and 02.

9

Master station (PC00)

Slave station (PC01)

Slave station (PC02)

コ0200 コ0201 コ0202

PC00 Program

PC01 Program

PC02 Program

 

02000

02000

 

02000

 

02010

 

02010

 

 

02010

02020

02020

 

02020

Send Receive

- The link relay of the receiving station must be programmed as input signal by the PC program- ming. Also, it may be used as source (S) side of application instruction.

- The sending and receiving data correspond in bits of one point unit.

 

 

 

(Master station)

 

 

 

 

 

 

 

 

(Slave station)

 

 

 

 

 

 

 

 

コ0200

 

 

 

 

 

 

 

 

 

 

コ0200

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Is the same value as 0200 of the master station.

 

 

 

 

コ0201

 

 

 

 

 

 

 

 

 

 

コ0201

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Is the same value as 0201 of the slave station.

9-1

Image 33
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 commandsOptional commands 10-3Communication 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