NS-Series Programmable Terminals HOST CONNECTION MANUAL

NS-Series Programmable Terminals HOST CONNECTION MANUAL

Section 3

Connection via Memory Link

This chapter explains the Memory Link function and how to use it to connect host computer.

3-1How does Memory Link work

3-2Settings

3-3Communications procedures

3-4What has been changed since NT31/631

31

3-1 How does Memory Link work

3-1-1 PT memory

With Memory Link you assign objects word and bit to PT memory. PT memory is an imaginary PLC area inside the NS. NS performs read/write operations to internal PT memory. Host reads/writes PT memory as required and so controls and monitors NS.

PT memory consists of 2 territories: Bit ($B) and Word ($W).

Host reads/writes internal holding memory($HB/$HW) can be used in the following combination:

NS system program Ver. 6.2 and later versions

System Ver.6.2 and later projects

PT memory can be also used to store functional object display character strings or as data area for the macro function.

3-1-2 Command and response

With Memory Link, the following commands enable data transmission between host and PT.

- Read-out command / response

This is the command for reading out PT memory of PT.

When host gives command, PT responds the contents of the designated data.

There are 4 commands that vary with the type of PT memory.

Command Title

Read out PT ($W) memory

RM

Action

Read out $W data in PT memory

RB

RD

Read out PT ($B) memory

Read out PT ($HW) memory

Read out $B data in PT memory

Read out $HW data in PT memory

RH Read out PT ($HB) memory Read out $HB data in PT memory

- Write command/response

This is the command to write designated data to PT memory area in PT.

Host gives command. PT responds whether or not the writing was completed successfully.

The successful completion response may be omitted by particular setting the Response parameter in the communications conditions menu.

The following 8 commands can be given:

Command Title

Write to PT memory ($W)

WM

Action

Write data to PT memory $W

WB

WD

Write to PT memory ($B)

Write to PT memory ($HW)

Write data to PT memory $B

Write data to PT memory $HW

WH

FM

Write to PT memory ($HB)

FILL PT memory ($W)

Write data to PT memory $HB

Write designated data to multiple

PT memory $W

32

FB

FD

FH

FILL PT memory ($B)

FILL PT memory ($HW)

FILL PT memory ($HB)

Write designated data (0 or 1) to

Multiple PT memory $B.

Write designated data to multiple

PT memory $HW

Write designated data (0 or 1) to

Multiple PT memory $HB.

- Notify Command

This is the command to communicate the results of PT operations to host.

PT gives command. For that reason, there is no response.

The following 4 commands can be given.

command Title Action

PT memory ($W) change notice Notify host of PT memory $W changes.

SM

SB

SD

PT memory ($B) change notice Notify host of PT memory $B changes.

PT memory ($HW) change notice Notify host of PT memory $HW changes.

SH changes.

- Error response

Response from PT when the received command is an invalid one.

Command Title

Error response

ER

Action

Notify host of command error

33

3-1-3 Action when command is used

There are 3 flows of communications between host and PT, depending on the type of command and Response

Settings in Communications conditions.

- Write data command while [response: OFF]

[Host] [PT]

Write data command

Send command Receive command

- Write Data command while [response: ON]

- Read-out data command

- Invalid command

Send command Receive command receive response

- PT to host communications

Send response

[Host] [PT]

Receive change notice command.

Communicate command

Change PT memory

Send change notice command

34

3-1-4 Notify Command Behavior

When anything has changed in the PT memory, by e.g. touch switch operation on PT, numerical input or character string input, PT sends change notice command to host.

In addition to Memory Link connection, PT memory serves other purposes as well. If all changes would be communicated to host, the host would be burdened more than is needed. For that reason, PT communicates only changes from a designated number and up. Changes in PT memory areas with a lower number are not communicated.

Set the number in Communications conditions -> Notice Start $B, Notice Start $W, Notice Start $HB, and

Notice Start $HW.

$W

$W0 no notice

PT operati on

Number input

Notice start

$W notify command

Number input

Only changes from specified $W number and up are communicated to host using the change notice Command.

3-1-5 Flow control

When too many commands are sent, PT cannot process timely. Communications buffer overflows. Commands and command sequence get lost. Memory Link connection in NS Series -V1/-V2 models do not support flow control.

For that reason, set Communications conditions Response to ON when PT to host command interval frequency becomes high.

35

3-2 Settings

3-2-1 Making settings for the Project

The Memory Link can be used in combination with

NS system program Ver. 5.0 and later versions

System Ver.5.0 and later projects

With CX-Designer, you can create and edit project developed by System Ver.5.0 and later projects.

A project created with System Ver.4.0 or earlier can be opened with CX-Designer and converted to data of Ver.5.0 and later.

Open a project created with System Ver.5.0 using CX-Designer, and select PT - Communication Setting. The

Comm. Setting dialogue appears. Select Serial Port A (or Serial Port B) in the left pane, and select Memory Link from the pull down menu for

Serial Port.

36

You cannot simultaneously set Serial Port A and B to Memory Link.

37

3-2-2 Communications conditions setting

In CX-Designer, select Serial Port A (or Serial Port B) in the Comm. Setting dialog box, and set to the following communications conditions. With System Ver.6.2 and later projects, you can set Notice start $HB and Notice start $HW.

Parameter

Baud rate

Data bits

Stop bits

Parity response

Notice start $B

Notice start $W

Notice start $HB

Notice start $HW

Set value

9600bps / 19200bps / 38400bps

7 / 8

1 / 2

None / Even / Odd

OFF / ON

0 to 32767

0 to 32767

0 to 8191

0 to 8191

Default value

9600bps

7

1

Even

OFF

16384

16384

4096

4096

3-2-3 NS system menu operation

You can also use the NS system menu to set the communications conditions for the Memory Link connection.

Under system menu, click tab Communications Setting.

By pressing the key beside the Serial Port A or Serial Port B, you can switch between communications methods.

unused

NT Link 1:1

NT Link 1:N

Bar code reader

Memory Link

Modem

After you have thus set communications to Memory Link, use the Details key to set the communications conditions for the Memory Link connection (for details, refer to section 2.2). However, with system menu you cannot set the Notice start $B, Notice start $W, Notice start $HB, and Notice start $HW.

Set values are not saved until you press the Write key. Also, setting changes will be effective when you turn the power OFF and then ON again.

38

3-2-4 Connection Diagram

Use either NS Serial Port A or B to connect host computer via Memory Link.

You cannot simultaneously set Serial Port A and B to Memory Link.

The connecting cable varies with the specifications of the host computer communications port.

Below is a typical example, which shows the wiring diagram when DOS/V PC is connected.

9pin

Dsub(Female)

3 SD

2 RD

7 RS

8 CS

5 SG

DOS/V PC

9pin

Dsub(Male)

SD

RD

2

3

RS 4

CS

SG

5

9

NS-series PT

Above wiring is identical with the NS to and from CX-Designer wiring.

If the cable length is conform, you can use the following cable with connector.

Cable length 2m, 9 pin⇔9 pin

39

3-3 Communications procedures

3-3-1 Memory Link Commands

Command/response formats are as mentioned below.

• Read/write/change notify command

ESC command *S *A *L *D SUM CR

• Read/write command (In above-mentioned format, the *L is regarded as 1 (fixed))

ESC command *S *A *D SUM CR

• Write all (FILL) command

ESC command *S *A *B *D

• Read type command normal completion response format

ESC command *A *L *D SUM

SUM CR

CR

ESC command *D SUM CR

*A

*B

*L

*D

ESC

SUM

CR

($1B) Initial Command: ESC($1B) fixed characters

1 English capital letters which display the type of command

Designates SUM omission and *L omission. In some cases, specifies write to memory attributes as well. character

SUM OFF: SUM computing by host can be omitted.

SUM ON: enables judgment if command is invalid as a result of noise interference.

Hexadecimal

4 digits

Initial read/write address

Hexadecimal

4 digits

Last Write all (FILL) address

BCD 2 digits

Variable length

2 characters

(may be abbreviated)

($0D)

Number of read/write elements

Data section

The checksum of the command response is the 2 digit code in hexadecimal which is indicated using lower one-byte of the total sum from the ESC to the *D. It can be abbreviated by specifying *S. Be sure that it is added when PT is transmitting.

Command end: CR($0D) fixed

40

Memory Link commands are as follows:

Command

RM

RB

RD

RH

WM

WB

WD

WH

Command title

Read PT memory ($W)

Read PT memory ($B)

Read PT memory ($HW)

Read PT memory ($HB)

Write PT memory ($W)

Write PT memory ($B)

Write PT memory ($HW)

Write PT memory ($HB)

Fill PT memory ($W)

FM

Fill PT memory ($B)

FB

Fill PT memory ($HW)

FD

Fill PT memory ($HB)

FH

SM

SB

SD

SH

PT memory ($W) change notice

PT memory ($B) change notice

PT memory ($HW) change notice

PT memory ($HB) change notice

Action

Read contents of $W data

Read contents of $B data

Read contents of $HW data

Read contents of $HB data

Write to $W data

Write to $B data

Write to $HW data

Write to $HB data

Fill multiple sequential $W with the same value

Fill multiple sequential $B with the same value.

Fill multiple sequential $HW with the same value

Fill multiple sequential $HB with the same value.

Communicate $W changes to host

Communicate $B changes to host

Communicate $HW changes to host

Communicate $HB changes to host

41

RM Read PT memory ($W)

Read $W data in PT memory.

Per command, a maximum of 100 words can be read.

Response is up to 50 words per response.

When requesting command is parameter 2: number of words exceeds 51, then the response is split into two.

The first response sends 50 words, the second response sends the remaining channels.

When entries were made on NS in between the first and second response, change notice command is not sent until after the second response has been sent.

ESC command *S *A

$1B

R

M

*L SUM CR

$0D

[Settings]

*S

0 OFF

1 ON

*A

*L

0000 to 7FFF

00 to 99

Initial address No. (hexadecimal 4 digits)

Number of read-out words (BCD 2 digits)

00 indicates 100.

• Successful completion response format

ESC command

*A

*L *D SUM CR

$0D

[Settings]

*A

0000 to 7FFF Initial address No. (hexadecimal 4 digits)

*L

*D

01 to 50

0 to FFFF

“,”

Number of read-out words (BCD 2 digits)

Word data (zero suppressed hexadecimal 1 to 4 digits)

From 2 nd

word onward, enter comma “, “($2C) before the next data.

42

RB Read PT memory ($B)

Read $B data in PT memory.

Per command, a maximum of 100 bits can be read.

After reading, bit data are displayed and returned per 8 bits as 8 bit value.

ESC command

*S

$0D

[Settings]

*A

*L

*S

0 OFF

1 ON

8 OFF

Number of tables: 1 (fixed). Omit Parameter2.

9 ON

0000 to 7FFF Initial address No. (hexadecimal 4 digits)

00 to 99 Read-out bit number (BCD 2 digits)

00 indicates 100.

ESC command *A

$1B

R

*L *D

B Variable length

SUM CR

$0D

[Settings]

*A

0000 to 7FFF Initial address No. (hexadecimal 4 digits)

*L

*D

00 to 99

00 to FF

Number of bits (BCD 2 digits)

00 indicates 100.

Bit data (hexadecimal 2 digit value of 8 bits each)

0:OFF, 1: ON

Fills addresses in ascending order starting with first digit. Turns 8 bits into a binary 8 digit value and displays this as a hexadecimal 2 digit value. The next hexadecimal 2 digit value continues with the following 8 bits.

Fills any of the last 8 bits that does not actually have a valid read-out data with 0.

[example] from $B10 6 bits have read-out value

$B10 11 12 13 14 15 * *

1 0 1 0 1 1 0 0 → AC (converted to hexadecimal form)

43

RD Read PT memory ($HW)

Read $HW data in PT memory.

Per command, a maximum of 100 words can be read.

Response is up to 50 words per response.

When requesting command is parameter 2: number of words exceeds 51, then the response is split into two.

The first response sends 50 words, the second response sends the remaining channels.

When entries were made on NS in between the first and second response, change notice command is not sent until after the second response has been sent.

ESC command *S *A

$1B

R

D

*L SUM CR

$0D

[Settings]

*S

0 OFF

1 ON

*A

*L

0000 to 1FFF Initial address No. (hexadecimal 4 digits)

00 to 99 Number of read-out words (BCD 2 digits)

00 indicates 100.

• Successful completion response format

ESC command

*A

*L *D SUM CR

$0D

[Settings]

*A

0000 to 1FFF Initial address No. (hexadecimal 4 digits)

*L 01 to 50

*D 0 to FFFF

“,”

Number of read-out words (BCD 2 digits)

Word data (zero suppressed hexadecimal 1 to 4 digits)

From 2 nd

word onward, enter comma “, “($2C) before the next data.

44

RH Read PT memory ($HB)

Read $HB data in PT memory.

Per command, a maximum of 100 bits can be read.

After reading, bit data are displayed and returned per 8 bits as 8 bit value.

ESC command

*S

$0D

[Settings]

*A

*L

*S

0 OFF

1 ON

8 OFF

Number of tables: 1 (fixed). Omit Parameter2.

9 ON

0000 to 1FFF Initial address No. (hexadecimal 4 digits)

00 to 99 Read-out bit number (BCD 2 digits)

00 indicates 100.

ESC command *A

$1B

R

*L *D

H Variable length

SUM CR

$0D

[Settings]

*A

0000 to 1FFF Initial address No. (hexadecimal 4 digits)

*L

*D

00 to 99

00 to FF

Number of bits (BCD 2 digits)

00 indicates 100.

Bit data (hexadecimal 2 digit value of 8 bits each)

0:OFF, 1: ON

Fills addresses in ascending order starting with first digit. Turns 8 bits into a binary 8 digit value and displays this as a hexadecimal 2 digit value. The next hexadecimal 2 digit value continues with the following 8 bits.

Fills any of the last 8 bits that does not actually have a valid read-out data with 0.

[example] from $HB10 6 bits have read-out value

$HB10 11 12 13 14 15 * *

1 0 1 0 1 1 0 0 → AC (converted to hexadecimal form)

45

WM Write to PT memory ($W)

Write to $W data in PT memory.

Per command, a maximum of 50 words can be written.

As writing attribute you can select SET, AND, OR, or XOR.

ESC command CR

*S

$0D length

[Settings]

*S

BCD1digit

SUM Writing attribute

0 OFF

Writes designated value just as it is.

2 OFF

AND

3 ON

4 OFF

OR

5 ON

6 OFF

XOR

7 ON

Ands present value of destination with designated value and writes outcome.

Ors present value of destination with designated value and writes outcome

Xors present value of destination with designated value and writes outcome.

8 OFF Omits *L .

Number of destination words : 1

(fixed)

*A

*L

0000 to 7FFF

01to 50

*D 0000 to FFFF

“,”

Initial address number (hexadecimal 4 digits)

Number of destination words (BCD 2 digits)

Word data (zero suppressed hexadecimal, 1 to 4 digits)

From 2 nd

word on, enter comma [,] ($2C) before next data.

Data ending with comma cause error.

• Normal completion response format (only when response under communications conditions is ON).

ESC command SUM CR

$0D

[Settings]

*D

00 fixed. Indicates successful completion.

46

WB Write PT memory ($B)

Write to $B data in PT memory.

Per command, a maximum of 100 bits can be written.

ESC command

*S

CR

$0D length

[Settings]

*A

*L

*D

*S

BCD1 digit SUM value

0 OFF

1 ON

8 OFF

Bit number: 1 fixed. Parameter 2 omitted.

9 ON

0000 to 7FFF Initial address number (hexadecimal 4 digits)

00 to 99

00 to FF

Entry bit number (BCD 2 digits)

When 00, 100 is meant.

Bit data (hexadecimal 1 digit value for 4 bits each)

0: OFF, 1: ON

Fills data in descending order starting with first digit. Turns 4 bits into a binary 4 digit value and displays this as a hexadecimal 1 digit value. The next hexadecimal 1 digit value continues with the following 4 bits.

Fills any of the last 4 bits that does not actually have a valid read-out data with 0.

[example] from $B10, 6 bits have read-out value

$B10 11 12 13 14 15 * *

1 0 1 0 1 1 0 0 → AC (converted to hexadecimal form)

• Normal completion response format (only when response under communications conditions is ON).

ESC command

*D

SUM CR

$1B W B 0

$0D

[Settings]

47

*D

00 fixed. Indicates normal completion.

48

WD Write to PT memory ($HW)

Write to $HW data in PT memory.

Per command, a maximum of 50 words can be written.

As writing attribute you can select SET, AND, OR, or XOR.

ESC command CR

*S

$0D length

[Settings]

*S

BCD1digit

SUM Writing attribute

0 OFF

SET

1 ON

2 OFF

AND

3 ON

4 OFF

OR

5 ON

6 OFF

XOR

7 ON

8 OFF

Writes designated value just as it is.

Ands present value of destination with designated value and writes outcome.

Ors present value of destination with designated value and writes outcome

Xors present value of destination with designated value and writes outcome.

Omits *L .

Number of destination words : 1

(fixed)

*A

*L

0000 to 1FFF

01to 50

*D 0000 to FFFF

“,”

Initial address number (hexadecimal 4 digits)

Number of destination words (BCD 2 digits)

Word data (zero suppressed hexadecimal, 1 to 4 digits)

From 2 nd

word on, enter comma [,] ($2C) before next data.

Data ending with comma cause error.

• Normal completion response format (only when response under communications conditions is ON).

ESC command SUM CR

$0D

[Settings]

*D

00 fixed. Indicates successful completion.

49

WH Write PT memory ($HB)

Write to $HB data in PT memory.

Per command, a maximum of 100 bits can be written.

ESC command

*S

CR

$0D length

[Settings]

*A

*L

*D

*S

BCD1 digit SUM value

0 OFF

1 ON

8 OFF

Bit number: 1 fixed. Parameter 2 omitted.

9 ON

0000 to 1FFF Initial address number (hexadecimal 4 digits)

00 to 99

00 to FF

Entry bit number (BCD 2 digits)

When 00, 100 is meant.

Bit data (hexadecimal 1 digit value for 4 bits each)

0: OFF, 1: ON

Fills data in descending order starting with first digit. Turns 4 bits into a binary 4 digit value and displays this as a hexadecimal 1 digit value. The next hexadecimal 1 digit value continues with the following 4 bits.

Fills any of the last 4 bits that does not actually have a valid read-out data with 0.

[example] from $HB10, 6 bits have read-out value

$HB10 11 12 13 14 15 * *

1 0 1 0 1 1 0 0 → AC (converted to hexadecimal form)

• Normal completion response format (only when response under communications conditions is ON).

ESC command

*D

SUM CR

$1B W H 0

$0D

[Settings]

50

*D

00 fixed. Indicates normal completion.

51

FM Fill PT memory ($W)

Fills PT memory $W with the same word data. Range: first to last address number.

ESC command

*S

*A *B *D SUM CR

$1B F M $0D

[Settings]

*A

*B

*D

*S

BCD1 digit

SUM value

0 OFF

1 ON

0000 to 7FFF First address number (hexadecimal 4 digits)

0000 to 7FFF Last address number (hexadecimal 4 digits)

0 to FFFF Word data (zero suppressed hexadecimal 1 to 4 digits)

• Normal completion response format (only when response under communications conditions is ON).

ESC command

*D

SUM CR

0 E $0D

[Settings]

*D

00 fixed. Indicates normal completion.

52

FB Fill PT memory ($B)

Fills PT memory $B with the same bit data. Range: first to last address number.

ESC command

*S

$1B F B $0D

[Settings]

*A

*B

*S

BCD1 digit

SUM value

0 OFF

1 ON

0000 to 7FFF Initial address number (hexadecimal 4 digits)

0000 to 7FFF Last address number (hexadecimal 4 digits)

Bit data (hexadecimal 1 digit)

1: ON

• Normal completion response format (only when response under communications conditions is ON).

ESC command

*D

SUM CR

$0D

[Settings]

*D

00 fixed. Indicates normal completion.

53

FD Fill PT memory ($HW)

Fills PT memory $HW with the same word data. Range: first to last address number.

ESC command

*S

*A *B *D SUM CR

$1B F D $0D

[Settings]

*A

*B

*D

*S

BCD1 digit

SUM value

0 OFF

1 ON

0000 to 1FFF First address number (hexadecimal 4 digits)

0000 to 1FFF Last address number (hexadecimal 4 digits)

0 to FFFF Word data (zero suppressed hexadecimal 1 to 4 digits)

• Normal completion response format (only when response under communications conditions is ON).

ESC command

*D

SUM CR

0 E $0D

[Settings]

*D

00 fixed. Indicates normal completion.

54

FH Fill PT memory ($HB)

Fills PT memory $HB with the same bit data. Range: first to last address number.

ESC command

*S

$1B F H $0D

[Settings]

*A

*B

*S

BCD1 digit

SUM value

0 OFF

1 ON

0000 to 1FFF Initial address number (hexadecimal 4 digits)

0000 to 1FFF Last address number (hexadecimal 4 digits)

Bit data (hexadecimal 1 digit)

1: ON

• Normal completion response format (only when response under communications conditions is ON).

ESC command

*D

SUM CR

$0D

[Settings]

*D

00 fixed. Indicates normal completion.

55

SM PT memory ($W) change notice

When PT memory $W changed as a result of PT operation and when this $W address is higher than the address designated with Notice start $W in the communications settings menu, this command is sent from PT to host.

Response from host to PT is not needed.

When sent from host to PT, illegal command error occurs.

ESC command

*A

*L *D SUM CR

$1B S M Variable length

$0D

SB

[Settings]

*A

0000 to 7FFF Changed address number (hexadecimal 4 digits)

*L

*D

01 to 50

0000 to FFFF

“,”

Number of changed words (BCD 2 digits)

Word data (zero suppressed hexadecimal 1 to 4 digits)

Divide multiple word data by comma [,] ($2C).

Data ending with comma cause error.

PT memory ($B) change notice

When PT memory $B changed as a result of PT operation and when this $B address is higher than the address designated with Notice start $B in the communications settings menu, this command is sent from PT to host.

Response from host to PT is not needed.

When sent from host to PT, illegal command error occurs.

ESC command CR

*A

$0D

[Settings]

*A

*B

0000 to 7FFF Changed address number (hexadecimal 4 digits)

01 fixed Number of changed bits (hexadecimal 2 digits)

Bit data (hexadecimal 1 digit)

1: ON

56

SD PT memory ($HW) change notice

When PT memory $HW changed as a result of PT operation and when this $HW address is higher than the address designated with Notice start $HW in the communications settings menu, this command is sent from PT to host.

Response from host to PT is not needed.

When sent from host to PT, illegal command error occurs.

ESC command

*A

*L *D SUM CR

$1B S D Variable length

$0D

SH

[Settings]

*A

0000 to 1FFF Changed address number (hexadecimal 4 digits)

*L

*D

01 to 50

0000 to FFFF

“,”

Number of changed words (BCD 2 digits)

Word data (zero suppressed hexadecimal 1 to 4 digits)

Divide multiple word data by comma [,] ($2C).

Data ending with comma cause error.

PT memory ($HB) change notice

When PT memory $HB changed as a result of PT operation and when this $HB address is higher than the address designated with Notice start $HB in the communications settings menu, this command is sent from PT to host.

Response from host to PT is not needed.

When sent from host to PT, illegal command error occurs.

ESC command CR

*A

$0D

[Settings]

*A

*B

0000 to 1FFF Changed address number (hexadecimal 4 digits)

01 fixed Number of changed bits (hexadecimal 2 digits)

Bit data (hexadecimal 1 digit)

1: ON

57

ESC command

*D

SUM CR

$1B E R $0D

[Settings]

*D

Error codes listed below (hexadecimal 2 digits)

Error code

Error contents

01 Illegal command

02

03

05

10

12

Command length error

Boundary value error

Command format error

SUM value error

Reception timeout error cause

Command contents lie outside the supported range

Length of received command is illegal for that command.

• Value set to parameter lies outside the supported range.

• Parameter in BCD format includes others than 0 to 9

Sum information Set value lies outside the effective range.

$W/$B command; Data section includes characters other than 0 to F and “,”.

$W command; data section ends with “,”.

Command with sum value ON. Computed sum value and the one in the command do not match.

After the initial ESC was received, the interval in between receiving one byte after the other until command end [CR] exceeded timeout monitoring time.

These commands are sent from NS to host when the host sent an invalid command and when a communications error occurred.

58

3-4 What has been changed since NT31/631

3-4-1 Memory Link Commands

This summarizes the points that need to be given attention when switching over from NT31/631 series to NS series Memory Link.

Memory structure inside PT differs, so the structure of Memory Link commands has changed as well.

■Memory structure inside PT

PT memory

Memory table

NT31/631 series

Contact point channel common

0000 to 9999

Number memory table

Character string memory table bit memory table

NS series

Contact point

$B0 to 65535 $HB0 to 8191 channel $W0 to 65535 $HW0 to 8191 none

Battery backup

Is performed Is not performed Is performed

■Memory Link command

CB

ST

SN

SS

PM

SM

SB

MC

RM

RB

RN

RS

WM

WB

FR

PT

WN

WS

FM

FB

CN

CS

ER

RD

NT31/631 series

Read-out PT memory

NS series

Read-out PT memory ($W)

Read-out bit memory table

Read-out number memory table

Read-out character string memory table

Write to PT memory

Write to bit memory table

Read-out display data comment

Read-out PT memory ($B)

-

-

Read-out system conditions

Write to number memory table

Write to character string memory table

Fill PT memory

-

Clear number memory table

Clear character string memory table

Clear bit memory table

Fill PT memory ($W)

Fill PT memory ($B)

-

-

Touch switch input notice

Number input notice

Character string input notice

-

-

-

-

-

-

-

Write to PT memory ($W)

Write to PT memory ($B)

-

Direct area change notice

PT memory change notice

-

Switch PT operating mode

Error response

-

-

PT memory ($W) change notice

PT memory ($B) change notice

-

-

Error response

Read-out PT memory ($HW)

59

RH

WD

WH

FD

FH

SD

SH

-

-

-

-

-

-

-

Read-out PT memory ($HB)

Write to PT memory ($HW)

Write to PT memory ($HB)

Fill PT memory ($HW)

Fill PT memory ($HB)

PT memory ($HW) change notice

PT memory ($HB) change notice

■Execution of contact notice to $W

While NT31/631 performs contact point change notice and channel change notice in the same PT memory, the

NS splits it into $B and $W

There, the use of a macro, enables the contact point notice to $W.

E.g. Momentary switch sending notice to 5 th

bit in $W1000

Create ON/OFF button

Designate $B address that is not specified for any other purpose.

Destination address may be blank, but in that case the button does not light when it is being pressed down.

Edit macro (touch ON)

$W1000 = $W1000 | H10;

Edit macro (touch OFF)

$W1000 = $W1000 & to H10;

■PT memory hold

Battery backup in NT31/631 ensures that PT memory and memory table values are kept as they were when the power goes off.

Because NS’s battery backup holds PT memories($HB/$HW), the values in these memories are kept as they were when the power goes off. Host reads/writes internal holding memory($HB/$HW) is only available in the following combination:

NS system program ver.6.2 and later versions

System ver.6.2 and later projects

NS cannot react to an unexpected power fall out, but there is a possibility to store values before the power is turned OFF.

You can save a copy of PT memory $W by saving the contents of this memory as a file on a compact flash card.

Then removes this card.

As it is a file reading/writing operation to a compact flash card, it cannot be done frequently. In addition, you cannot save a copy of the PT memory $B.

E.g. Manually save the PT memory $W contents.

Create a command button

Set function selection to No processing

60

Edit macro (touch ON)

WRITECF($W16384,16384,”PTMEM.DAT”,0);

E.g. Recover PT memory $W contents from saved file when PT is started up.

Edit macro when project is started up

READCF($W16384,16384,”PTMEM.DAT”,0);

61

Was this manual useful for you? yes no
Thank you for your participation!

* Your assessment is very important for improving the work of artificial intelligence, which forms the content of this project

Download PDF

advertisement

Table of contents