Chapter 6: Instructions
163
Instruction
Mnemonic
Bit Data Send
Range
Bit
■
Word
SENDB
Bit data send command using the
link network
Double words
Ladder
Read the bit value of NB5, and write it to link
network NN1, station NN2, register type NN3, bit
address NR4.
Description
1. NN1: Link network number (number).
NN2: Station number on the link network (number).
NN3: Register type to write (number):
0: L register
1: M register
2: R register
3: K register
4: T/C Setting Value (SV)
5: T/C Present Value (PV)
6: W register
7: F register
NR4: Bit address to write in hexadecimal form (number/register).
NB5: Bit value to write (bit).
2. The link network loop number is a number from 1 to 3. The first link module in the base rack
is assigned network ID 1, the second is 2, and the third is link network 3.
3. The network bit address to write (NR4) is represented in hexadecimal form, where the low 4
bits indicate the bit number to write (from 0 to F), and the high 12 bits represent the word
number. For example, to write the 5
th
bit of word 3, the value of NR4 would be $0035.
4. The SENDB instruction can only by executed once in a given scan. To prevent reading over
the link network more than once per scan, place the SENDB instruction at the end of the
program.
Example
Program Expression
Operation Results
Verify that the first link module has been installed (F3.3)
and sent through the first module (F3.10). Then write the
1
st
bit of word 0 of register type R (To = 2:$01) on link
network 1, station 3 (Nt = 1:3) with the value of bit
address F1.3 (Fr = F1.3).
SENDB
Nt = NN1:NN2
To = NN3:NR4
Fr = NB5
R
NNx: number (1 to 3)
NRx: number/register
(in case of number
display in hexadecimal)
NBx: STATUS/bit register
SENDB
Nt = 1:3
To = 2:$01
Fr = F1.3
F3.3 F3.10
Содержание D320 PLC
Страница 1: ...D320 PLC User s Manual...
Страница 18: ...6 D320 PLC User s Manual...
Страница 28: ...16 D320 PLC User s Manual...
Страница 34: ...22 D320 PLC User s Manual...
Страница 78: ...66 D320 PLC User s Manual...
Страница 176: ...164 D320 PLC User s Manual...
Страница 210: ...198 D320 PLC User s Manual...
Страница 258: ...246 D320 PLC User s Manual...