3 - 11                  3 - 11 
MELSEC-Q
3   SPECIFICATIONS 
 
Classification 
Command, 
Function 
Operation 
Command to 
write to the 
designated bit 
Writing to the 
designated bit 
WTSET  Writes 0 or 1 to the specified bit of an integer array variable. 
Command to 
read from the 
designated bit 
Reading from the 
designated bit 
RDSET  Reads 1-bit data from the specified bit of an integer array variable. 
ASC  Returns a character code corresponding to the head of a string expression. Character   ASCII
 conversion 
CHR$  Returns a character whose code is an integer expression value. 
STR$  Recognizes a value as a decimal number and converts it to a character string. Character   
Number conversion
VAL  Returns a numerical value that is represented by a character string. 
HEX$  Converts a decimal number to a hexadecimal string. 
OCT$  Converts a decimal number to an octal string. 
Number   
Character string 
conversion 
BIN$  Converts a decimal number to a binary string. 
LEFT$  Extracts the specified number of characters from the left of a character string 
MID$ (Second) 
Extracts a partial string starting from the specified position in the original character 
string. 
RIGHT$  Extracts the specified number of characters from the right of a character string. 
STRING$  Returns the specified number of  the specified characters. 
Character sampling
SPACE$  Returns a null string of the specified length. 
Character search  INSTR 
Searches for the specified character string in the entire source string and returns 
the position of the first match. 
Character 
string functions 
Character string 
length search 
LEN  Returns the number of characters composing a character string. 
SPC  Returns the specified number of spaces. Format control 
function 
Format control 
TAB  Moves the currently displayed character position to the specified position. 
CONSOLE  Specifies the number of items to be displayed on the console screen. 
CLS  Clears the screen display.  
Screen control 
command 
Screen control 
LOCATE  Specifies the display position on the console screen. 
ZOPEN 
Opens a communication channel (port) in preparation for performing 
communications with an external device. 
Port assignment 
ZCLOSE 
Closes the communication channel (port) used for communications with external 
devices. 
Buzzer output  BEEP  Makes a buzzer sound from the speaker built in the console. 
LLIST  Outputs all or a part of programs in the program area to a printer. 
LPRINT  Outputs data to a printer. 
LPRINT USING  Outputs data in the specified format to a printer. 
LFILES  Outputs the names of the files on an FD or HD to a printer. 
ZLDV  Selects a printer port. 
Printer output 
WIDTH  Sets the output width in the printer. 
PRINT  Displays data on the screen. 
PRINT USING  Displays a character string or a numeric value in the specified format. 
Output to screen 
KEY LIST  Displays a character string defined for a function key on the screen. 
Input/Output 
Control 
Commands 
Output to port  ZSEND  Sends data from the specified port. 
(Continued from the previous page)