Browse
(440) 299-7778
Menu
(440) 299-7778
One-year parts and labor warranty30-day money-back guaranteeContact

The text of a manual · part 9 of 18

I/O link master module JW-31LMH Instruction Manual: §9 Required transfer time and communication timing

Pages 40 to 46 of 123, from I/O link master module JW-31LMH Instruction Manual

The original document is the PDF (3.3 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.

For the Sharp JW-31LMH

Page 40 read from a scan by OCR; it may hold reading errors

§9 Required transfer time and communication timing

9-1 Required transfer time

This is the time required for a master module to communicate with all stations. The following calculation includes actual communication time and internal processing time of the master module.

T=T, + (7, + T,) N (ms)

N T

A

: Total number of occupied bytes of |/O link (input/output) slave modules. (Unit: 1 byte) : Pre-processing time of the master module.

| Transfer speed 172.8 k bit/s = 0.7 ms | Transfer speed 345.6 k bit/s = 0.4 ms

: Necessary time to process 1 byte with master module.

| Transfer speed 172.8 k bit/s = 0.175 ms | Transfer speed 345.6 k bit/s = 0.088 ms

: Necessary time to communicate 1 byte with a slave module.

| Transfer speed 172.8 k bit/s = 0.228 ms) | Transfer speed 345.6 k bit/s = 0.114 ms

All calculation should be executed in decimal.

Ex.:

Transfer time at normal communication with 10 sets of I/O link slave module ZW-322SH (32-point output module.) (When transfer speed is 345.6 k bits per second.)

T = 0.4 + (0.088 + 0.114) X 40 = 8.48 ms

-33-

Page 41 read from a scan by OCR; it may hold reading errors

9-2 PC processing and communication timing

I/O link communication is operated asynchronous with PC scan cycle. However, start up of I/O link communication synchronizes with PC scan cycle.

[1] Module configuration

Master module PC ivi Processin Memory for | VO bus .| Data Receiving <H | memory” - > | data exchange memory Sending SIO _ CPU2 | OPUt |

Memory for data exchange:

CPU2:

Processing memory:

This is memory for storing output data for slave module and data from input module.

This is CPU of the master module. The CPU2 exchanges data with the PC and controls SIO.

This is the internal processing memory of the master module.

$10: This is control circuit for serial communication. Data memory: This is data memory for the PC.

CPU1: The CPU1 executes the master module processing and the PC processing. Communication and the PC operation timing are as follows:

Processing at master module side Processing at PC side PC hardware check Zero cross synchronous | Yes J

Process with data exchange memory d

PC input/output processing

>| Data exchange memory /

I/O link communication

Processing of PC, 34

Page 42 read from a scan by OCR; it may hold reading errors

[2] PC’s I/O cycle and communication timing

I/O tink communication is executed synchronized with the I/O processing of the PC. When communication time is longer or shorter than the PC scanning time, their time charts are as follows:

(1) When I/O link communication time is shorter than the PC scan time., - Time

I Data exchange I Data exchange I Data exchange

Waiting Waiting time time

PC scan cycle

Master module data exchange memory _|

Data Data Data exchange exchange exchange 1/0 link m - <AAAA - - hv, "VA communication

(2) When I/O link communication time is longer than the PC scan time.

PC scan cycle EB a S A Data Data Data Data Data Data exchange exchange ||exchange exchange exchange exchange

Data i \ Data exchange | Waiting <>. exchange

V/O link AM , time communication

Waiting time

Master module data exchange memory eo----

AAA

(] shows data processing time between the data exchange memory of a master module and the internal processing memory. It takes approx. 0.32 ms for data of 64 bytes.

In case of I, data to be read and written by the PC stays unchanged. Slave stations do not receive output from the PC and do not change input signal to the PC.

In mode 1 and mode 2, connection check communication of slave modules is executed once per 100 communication cycles. In this check, data is not exchanged.

(See the next page.), 35-

Page 43 read from a scan by OCR; it may hold reading errors

(3) In the case of connected station check of slave modules:

Below shows time chart to check connected stations. This is an example of the I/O link communication being shorter than the PC scan time. (when mode 1 and mode 2 are normal.)

Output singal is not sent PC scan cycle | | | | | | is

Number of link / no < 98 > 99 100

Previous input data

(2) \?/ communication x

Check connected station

(4) When I/O link communication is abnormal.

In VO link communication, when the received data is abnormal, output data to the PC varies depending on its operation mode (set by mode setting switch on master module).

ee ee f \

Number of I/O link / \ f \ communication r Vi

Detect . error Check connected station

(Repeat until recover to normal condition} a

Status information, J Error slave station number

Communication check is executed by checking of the connected stations of the slave modules, and repeated until communication becomes normal.

PC scan cycle f TL i tT Tt i CUT By

Number of 1/O link (98) communication

Detect abnormality ‘Check connected station \ Check connected station Check connected station

{Error occurs)

Status information, - - - - - - - - _ Error slave Error slave station NO. station NO.

When the master station detects an error in received data, the JW-31LMH checks the connected stations of the slave modules once. Then, outputs status information for one scan. Therefore, it executes I/O link communication. It treats the error slave station as the disconnected station. The JW-31LMH outputs the error slave station No. for one scan at every 100 scan of connected station check., 36

Page 44 read from a scan by OCR; it may hold reading errors

PC sean cycle | |

Number of I/O link, {98) communication Detect abnormality Check connecied station Check connected station

(Errir occurs)

Status information Error slave station No,

When the master station detects an error in received data, the JW-31LMH checks the connected stations of the slave modules once. Then, output status information for one scan. Therefore, it executes I/O link communication. It treats the error slave station as the disconnected station, and execute connected station check again when the CHECK relay or SW4 is ON.

I When the CHECK relay is ON When the CHECK relay is “ON,” the JW-31LMH checks connected stations.

Output signal is not sent PC scan cycle | - |

ON

CHECK relay OFF V/O link f \ communication \ /

Communi- Communi- cation . cation

Checking connected station

Status information Error slave station number (at error only) - - - I When the SW4 (connected station check switch) is ON The JW-31LMH check connected stations only one time after SW4 is switched “ON.”

PC scan cycle |

ON kK sw4 OFF lO cycle, ) 4 , Communi- Communi- Communi- Communi- Communi- cation cation tation cation : cation Check connected station Status information Error slave station number

SW4 check is executed after communication is completed.

_37-

Page 45 read from a scan by OCR; it may hold reading errors

(5) Data flow between a master module and slave modules (>> Input signal data, mp Output signal data)

Master station PC Master module i/O link input module I/O link output module . Input signal I/O processing E, T 1 Communication with 3 {slave station 1 = |Communication witht - ; _ |slave station 2 I/O processing _ I/O processing ~ V/O processing LLLLL I/O processing = ela Communication with = | slave station 1 = | Communication with |__| slave station 2 . i V/O processing VO processing I/O processing | T Output signal |_ =

[Note 4 | I/O processing of a slave module is executed after completing communication with its master station.

Time lag exists between I/O processing of the PC and those of the slave module.

The time required to receive an input signal is a total of D, @, and @ below.

1. Responce time of input module. ©

2. Waiting time to receive an input signal inside the input module for I/O processing Communication waiting time and communication time. D+® Waiting time and reading time up to control module. @) plus @ is max. 2 cycles. (1 cycle: see the next page.)

Time required to send an output signal is a total of @, and © below.

1. Communication time. © Maximum communication time for a single unit (Depends upon the station number. The slave module with the smallest station number takes the least time. The slave module with the largest station number takes the longest time.)

2. Responce time of output module. ©), 38

Page 46 read from a scan by OCR; it may hold reading errors

{ Description of 1 cycle: see the previous page]

¢ When the I/O link communication time is shorter than the PC scan time, one cycle time will be equal’ to PC’s scan time.

1 le ot, » Time

PC scan cycle | |

I/O link communucation wns ws en

« When the I/O link relay communication time is longer than the PC’s scan time, one cycle time will terminate at the end of the PC scan the next time after the communication is complete.

1 cycle , - - » Time

PC scan cycle | | | | | |

V/O link communucation $$$ . NANNY

9-3 Minimum scan time of the PC

The master module reads and writes I/O link data as PC special I/O module data.

The master module reads and writes through the data exchange memory so the PC is able to read and write the data.

When the PC scan time is shorter than this processing time, the PC keeps the previous data until the PC completes reading and writing in the data exchange memory in the next scanning.

The minimum scan time of the PC is determined in the following formula.

Teo = 0.005 (N, + N,)

N,: The total number of bytes of I/O link input module (Unit: 1 byte) The total number of bytes of I/O link output module (Unit: 1 byte) 0.005: Processing time to input/output data to the PC (Unit: ms)

Ex.; PC minimum scan time with 32 sets of 8 points output module.

Tag = 0.005 X 32 = 0.16 ms

PC scan time at synchronize PC processing and I/O link communication should be longer than transfer time.

(See page 33 for I/O link transfer time.)

If the PC scan time is shorter than the PC scan time of this calculation, only the data is not exchanged in every scan, but the value of the I/O link communication and data register in PC is not changed., 39